algolia / algolia/doc-code-samples
Build error with instantsearch.js/facet-dropdown
- Dominant language
- TypeScript
- Stars
- 99
- Forks
- 122
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
After npm install, npm start return following error :
Server running at http://localhost:3000
🚨 /Users/stephane.ma/Sites/instantsearch/dropdownfacets/favicon.png: Invalid Version: undefined
at new SemVer (/Users/stephane.ma/Sites/instantsearch/dropdownfacets/node_modules/@babel/preset-env/node_modules/semver/semver.js:314:11)
at compare (/Users/stephane.ma/Sites/instantsearch/dropdownfacets/node_modules/@babel/preset-env/node_modules/semver/semver.js:647:10)
at Function.lt (/Users/stephane.ma/Sites/instantsearch/dropdownfacets/node_modules/@babel/preset-env/node_modules/semver/semver.js:688:10)
at /Users/stephane.ma/Sites/instantsearch/dropdownfacets/node_modules/@babel/preset-env/lib/index.js:273:15
at Object.default (/Users/stephane.ma/Sites/instantsearch/dropdownfacets/node_modules/@babel/helper-plugin-utils/lib/index.js:23:12)
at getEnvPlugins (/Users/stephane.ma/Sites/instantsearch/dropdownfacets/node_modules/parcel-bundler/src/transforms/babel/env.js:62:34)
at getEnvConfig (/Users/stephane.ma/Sites/instantsearch/dropdownfacets/node_modules/parcel-bundler/src/transforms/babel/env.js:12:25)
at async getBabelConfig (/Users/stephane.ma/Sites/instantsearch/dropdownfacets/node_modules/parcel-bundler/src/transforms/babel/config.js:32:19)
at async babelTransform (/Users/stephane.ma/Sites/instantsearch/dropdownfacets/node_modules/parcel-bundler/src/transforms/babel/transform.js:6:16)
at async JSAsset.pretransform (/Users/stephane.ma/Sites/instantsearch/dropdownfacets/node_modules/parcel-bundler/src/assets/JSAsset.js:83:5)
Tahnk you for support,
Stephane
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the failure with npm install followed by npm start in the facet-dropdown sample, then inspect how favicon.png is passed through Parcel and Babel, using the reported @babel/preset-env semver stack trace as the starting point. Done means the sample starts successfully without the Invalid Version: undefined error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- babel, javascript, node.js
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100