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

Example fails to run after creating a fresh lib #1175

Open
leobastiani opened this issue Mar 22, 2023 · 1 comment
Open

Example fails to run after creating a fresh lib #1175

leobastiani opened this issue Mar 22, 2023 · 1 comment

Comments

@leobastiani
Copy link

Current Behavior

npx tsdx create mylib (with react)
cd mylib/example
yarn
yarn start

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

ehubbell commented May 2, 2023

Looks like this is a known issue with semver.

Thread: parcel-bundler/parcel#5943
Temp workaround that worked for me: parcel-bundler/parcel#5943 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants