question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when running develop

See original GitHub issue

I 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:closed
  • Created 6 years ago
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
drtyh2ocommented, Dec 20, 2017

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!

1reaction
fathybcommented, Dec 19, 2017

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 the 0.3.0 release in the following days (you can already try it using parcel-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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when running gatsby commands #33723 - GitHub
In my case, I am using a Windows machine with WSL. The error appeared after following all these migration steps and executing npm...
Read more >
Build error while running - Stack Overflow
It happens because sometime Test.exe keeps running even after you finish executing test. One solution is to kill Test.exe once your run is...
Read more >
The Four Most Common Running Form Errors — And How to ...
One of the best parts about running is that you're constantly able to improve — whether it be your form, your speed, or...
Read more >
Can't run project, says i have build errors
I've tried multiple projects, made by me or just copied from internet, none wants to run, it always says there were build errors....
Read more >
Fix program errors and improve code - Visual Studio (Windows)
This article describes some basic ways Visual Studio can help you find and fix problems in your code, including build errors, code analysis, ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found