Skip to content
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

yarn start in the example throws Parcel error: Invalid Version: undefined #987

Closed
daniele-zurico opened this issue Mar 8, 2021 · 2 comments
Labels
scope: templates Related to an init template, not necessarily to core (but could influence core) scope: upstream Issue in upstream dependency solution: duplicate This issue or pull request already exists solution: workaround available There is a workaround available for this issue

Comments

@daniele-zurico
Copy link

Current Behavior

Just created a new fresh installation of tsdx:

npx tsdx create mylib
yarn
cd example
yarn
yarn start

and it throws an error:

danielezurico@Danieles-MBP example % yarn start
yarn run v1.22.10
$ parcel index.html
Server running at http://localhost:1234 
🚨  /Users/danielezurico/Desktop/mylib/example/index.tsx: Invalid Version: undefined
    at new SemVer (/Users/danielezurico/Desktop/mylib/example/node_modules/semver/semver.js:314:11)
    at compare (/Users/danielezurico/Desktop/mylib/example/node_modules/semver/semver.js:647:10)
    at lt (/Users/danielezurico/Desktop/mylib/example/node_modules/semver/semver.js:688:10)
    at /Users/danielezurico/Desktop/mylib/example/node_modules/@babel/preset-env/lib/index.js:276:22
    at Object.default (/Users/danielezurico/Desktop/mylib/example/node_modules/@babel/helper-plugin-utils/lib/index.js:22:12)
    at getEnvPlugins (/Users/danielezurico/Desktop/mylib/example/node_modules/parcel/src/transforms/babel/env.js:62:34)
    at getEnvConfig (/Users/danielezurico/Desktop/mylib/example/node_modules/parcel/src/transforms/babel/env.js:12:25)
    at async getBabelConfig (/Users/danielezurico/Desktop/mylib/example/node_modules/parcel/src/transforms/babel/config.js:32:19)
    at async babelTransform (/Users/danielezurico/Desktop/mylib/example/node_modules/parcel/src/transforms/babel/transform.js:6:16)
    at async JSAsset.pretransform (/Users/danielezurico/Desktop/mylib/example/node_modules/parcel/src/assets/JSAsset.js:83:5)

Suggested solution(s)

maybe update parcel?

Your environment

System:
    OS: macOS 10.15.7
    CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
    Memory: 2.19 GB / 32.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 12.18.4 - /usr/local/bin/node
    Yarn: 1.22.10 - /usr/local/bin/yarn
    npm: 6.14.6 - /usr/local/bin/npm
  Browsers:
    Chrome: 88.0.4324.192
    Firefox: 82.0
    Safari: 14.0
  npmPackages:
    typescript: ^3.4.5 => 3.9.9 
@daniele-zurico
Copy link
Author

just saw duplicated

@agilgur5 agilgur5 changed the title yarn start in the example throw Invalid Version: undefined yarn start in the example throws Parcel error: Invalid Version: undefined Mar 10, 2021
@agilgur5
Copy link
Collaborator

Yes this is a duplicate of #980 , which itself duplicates an upstream issue. The version is specified in the template; it is not part of TSDX itself.

maybe update parcel?

That issue goes into detail how there is currently no stable and maintained version of Parcel.

Repository owner locked as resolved and limited conversation to collaborators Mar 10, 2021
@agilgur5 agilgur5 added scope: templates Related to an init template, not necessarily to core (but could influence core) scope: upstream Issue in upstream dependency solution: workaround available There is a workaround available for this issue solution: duplicate This issue or pull request already exists labels Mar 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
scope: templates Related to an init template, not necessarily to core (but could influence core) scope: upstream Issue in upstream dependency solution: duplicate This issue or pull request already exists solution: workaround available There is a workaround available for this issue
Projects
None yet
Development

No branches or pull requests

2 participants