-
-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript is not compiled #918
Comments
You haven't updated the path in your HTML file. <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>WMR App</title>
<meta name="description" content="WMR App" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="icon" href="data:" />
- <link rel="modulepreload" as="script" href="/index.js" />
+ <link rel="modulepreload" as="script" href="/index.tsx" />
<link rel="stylesheet" href="/style.css" />
</head>
<body>
- <script type="module" src="/index.js"></script>
+ <script type="module" src="/index.tsx"></script>
</body>
</html> I imagine this is a symptom of TS's wonky file resolution, in that you can use |
Thank you!!! And maybe mentioned this in your document. |
Building would cause an error as the script source cannot be found. I think I can probably port that over to dev. |
Oh and there's another bug. In tsconfig.json "compilerOptions": {
"paths": {
"@/*": ["./*"]
},
}, then |
Not a bug, just a feature that hasn't yet been released. #875 has been merged in, though. Use aliases in your |
One problem with this method is that it does not fill in the filename and extension name. For example: But if I use aliases like |
Interesting. |
Describe the bug
yarn create wmr
rename
public\index.js
topublic\index.tsx
then:
Bug occurs with:
wmr
orwmr start
(development)wmr serve
wmr build
(production)Desktop (please complete the following information):
Additional context
Does this mean we need to enable
@rollup/plugin-typescript
ourselves?The text was updated successfully, but these errors were encountered: