example start error with Invalid Version
See original GitHub issueCurrent Behavior
tsdx cli project,
// in the root directory
yarn start
// cd example
yarn start
xx/xx/example/index.tsx: Invalid Version: undefined at new SemVer (/tsdx/mylib/example/node_modules/semver/semver.js:314:11) at compare (/tsdx/mylib/example/node_modules/semver/semver.js:647:10) at lt (/tsdx/mylib/example/node_modules/semver/semver.js:688:10)
Expected behavior
show start local server success
Suggested solution(s)
Additional context
Your environment
System:
OS: macOS 11.6
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 1.22 GB / 32.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 16.10.0 - ~/.nvm/versions/node/v16.10.0/bin/node
Yarn: 1.22.15 - ~/.nvm/versions/node/v16.10.0/bin/yarn
npm: 7.24.0 - ~/.nvm/versions/node/v16.10.0/bin/npm
Browsers:
Safari: 14.1.2
npmPackages:
typescript: ^3.4.5 => 3.9.10
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:10
Top Results From Across the Web
Npm ERR! Invalid version on npm install - Stack Overflow
It would help if you would provide your package.json . Either the whole file – or at least "version": "x.x.x" and everything under...
Read more >Common errors | npm Docs
Broken npm installation; Random errors; No compatible version found ... Not found / Server error; Invalid JSON; Many ENOENT / ENOTEMPTY errors in...
Read more >Installations on z/OS version 6.1.1 ship with an invalid ... - IBM
When attempting to load the Copy Services Manager GUI, the following error might be seen. This error can prevent users from accessing the...
Read more >Transform failed with 1 error , error: Invalid version - YouTube
This video show how to solve following error in angular project that occured when building project using ng build . Error text:An unhadled ......
Read more >Knitr package install issues - Error: invalid version ...
seems to indicate that knitr , and possibly other packages such as rmarkdown , were not correctly installed. You probably see this message...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I also had this issue and I had to go back to parcel version 1 like this:
npm i --save-dev parcel-bundler@1.12.3
Hi guy,
It works for me.
Step 1: Update
parcel
to new version and change react-dom to../node_modules/react-dom
if you use react 18, like thisexample/package.json
Step 2: Change
example/index.html
like thisStep 3 (option): If you use react 18, change
example/index.tsx
like thishope it will be useful!