Error when running develop
See original GitHub issueI get the following error when running npn run develop
` C:\Git\ts-react-parcel>npm run develop
ts-react-parcel@1.0.0 develop C:\Git\ts-react-parcel parcel ./src/index.html
⏳ Building… Server running at http://localhost:1234 🚨 C:\Git\ts-react-parcel\src\index.tsx: Path must be a string. Received undefined at assertPath (path.js:28:11) at Object.resolve (path.js:207:7) at resolve (C:\Git\ts-react-parcel\node_modules\parcel-plugin-typescript\build\backend\transformers\paths.js:28:47) at ts.visitEachChild.child (C:\Git\ts-react-parcel\node_modules\parcel-plugin-typescript\build\backend\transformers\paths.js:16:38) at visitNodes (C:\Git\ts-react-parcel\node_modules\typescript\lib\typescript.js:51104:48) at visitLexicalEnvironment (C:\Git\ts-react-parcel\node_modules\typescript\lib\typescript.js:51137:22) at Object.visitEachChild (C:\Git\ts-react-parcel\node_modules\typescript\lib\typescript.js:51431:54) at C:\Git\ts-react-parcel\node_modules\parcel-plugin-typescript\build\backend\transformers\paths.js:10:16 at C:\Git\ts-react-parcel\node_modules\typescript\lib\typescript.js:2601:86 at reduceLeft (C:\Git\ts-react-parcel\node_modules\typescript\lib\typescript.js:2274:30) `
Issue Analytics
- State:
- Created 6 years ago
- Comments:11 (5 by maintainers)
I had to remove the
.cache
folder, but after doing so the build was successful in the test repo. I will try it out on our full repo tomorrow. Thanks!Thanks for the repo, I found the bug and released
parcel-plugin-typescript@0.2.5-next
to fix it. I don’t use TypeScript’s module resolution yet so it may be flacky, note that the build mode will not work but that will be fixed in the0.3.0
release in the following days (you can already try it usingparcel-plugin-typescript@0.3.0-angular-aot.14
).If you confirm me you do not encounter any other issues I will release it as
0.2.5
.