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

index.js: Invalid Version: undefined #5955

Closed
ggmon opened this issue Mar 3, 2021 · 5 comments
Closed

index.js: Invalid Version: undefined #5955

ggmon opened this issue Mar 3, 2021 · 5 comments

Comments

@ggmon
Copy link

ggmon commented Mar 3, 2021

🐛 bug report

npm install -g parcel-bundler

created index.html which includes index.js to test parcel

running parcel index.html throws error
Invalid Version: undefined

geegee@geegee-B450M-GAMING:~/mk-projects/parcel-demo$ parcel index.html
Server running at http://localhost:33119 - configured port 1234 could not be used.
🚨 /home/geegee/mk-projects/parcel-demo/index.js: Invalid Version: undefined
at new SemVer (/home/geegee/.nvm/versions/node/v15.3.0/lib/node_modules/parcel-bundler/node_modules/@babel/preset-env/node_modules/semver/semver.js:314:11)
at compare (/home/geegee/.nvm/versions/node/v15.3.0/lib/node_modules/parcel-bundler/node_modules/@babel/preset-env/node_modules/semver/semver.js:647:10)
at lt (/home/geegee/.nvm/versions/node/v15.3.0/lib/node_modules/parcel-bundler/node_modules/@babel/preset-env/node_modules/semver/semver.js:688:10)
at /home/geegee/.nvm/versions/node/v15.3.0/lib/node_modules/parcel-bundler/node_modules/@babel/preset-env/lib/index.js:276:22
at Object.default (/home/geegee/.nvm/versions/node/v15.3.0/lib/node_modules/parcel-bundler/node_modules/@babel/helper-plugin-utils/lib/index.js:22:12)
at getEnvPlugins (/home/geegee/.nvm/versions/node/v15.3.0/lib/node_modules/parcel-bundler/src/transforms/babel/env.js:62:34)
at getEnvConfig (/home/geegee/.nvm/versions/node/v15.3.0/lib/node_modules/parcel-bundler/src/transforms/babel/env.js:12:25)
at async getBabelConfig (/home/geegee/.nvm/versions/node/v15.3.0/lib/node_modules/parcel-bundler/src/transforms/babel/config.js:32:19)
at async babelTransform (/home/geegee/.nvm/versions/node/v15.3.0/lib/node_modules/parcel-bundler/src/transforms/babel/transform.js:6:16)
at async JSAsset.pretransform (/home/geegee/.nvm/versions/node/v15.3.0/lib/node_modules/parcel-bundler/src/assets/JSAsset.js:83:5)

🎛 Configuration (.babelrc, package.json, cli command)

{
  "name": "parcel-demo",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC"
}

🤔 Expected Behavior

😯 Current Behavior

💁 Possible Solution

🔦 Context

💻 Code Sample

🌍 Your Environment

Software Version(s)
Parcel 1.12.4
Node 15.3.0n
npm/Yarn 7.5.3
Operating System linux
@tdewin
Copy link

tdewin commented Mar 3, 2021

Had the same issue. Must be something with the version because I manually installed the previous version and now it works:

npm uninstall -g parcel-bundler
npm install -g [email protected]

@Qix-
Copy link

Qix- commented Mar 3, 2021

I'm getting this as of today as well. Semver ranges strike again - top-level Parcel package version 1.12.4 (latest tag) was published a year ago. A deeply nested dependency patch release was picked up and is breaking people.

Going to attempt to upgrade to @next but I expect plugin breakage. If this doesn't go smoothly, this will be a blocking break.

@mischnic
Copy link
Member

mischnic commented Mar 3, 2021

Duplicate of #5943

@mischnic mischnic marked this as a duplicate of #5943 Mar 3, 2021
@mischnic mischnic closed this as completed Mar 3, 2021
@Stradivario
Copy link
Contributor

Having the same issue from yesterday....

> parcel build ./src/index.html --target browser

🚨  **/src/assets/images/icons/icon-70x70.png: Invalid Version: undefined

@Qix-
Copy link

Qix- commented Mar 5, 2021

@Stradivario see #5943, this is marked as a duplicate issue. More details are over there, including a few workarounds.

SambaGodschynski pushed a commit to werckme/midiplayer that referenced this issue Mar 5, 2021
SambaGodschynski pushed a commit to werckme/werckmeister-component that referenced this issue Mar 6, 2021
SambaGodschynski added a commit to werckme/midiplayer that referenced this issue Mar 24, 2021
* initial

* audio processor added

* some changes

* poc impl.

* changed

* testmidi changed

* instrument added

* different track/instruments impl

* note off and velocity impl

* testfiles separated

* setup test build

* missing file added

* mario underworld added

* * buffered rendering impl

* fade out impl

* render is async now
clean up

* velocity exp

* velocity back to lin

* pitch added

* before changing midi parser

* midi parser changed
pithcbend impl

* pitch shifting sound glitches fixed

* CC pan/expr impl

* IMidiEvent refactoring
MidiEventNotification impl.

* * generating d.ts files during deployment

* build script updated

* babel added

* missing file added

* absolute tick position added to event

* package json version updated

* using index.d.ts now

* missing d.ts file added

* ppq was set to public

* fixed: volume, expression, pitch values might not be correct

* package version increased

* forced samplerate in audio context to 44100

* did some polish:
* stop event will be triggered after playback is done
* fadeout time increased
* fixed bug for midi files which have no track id

* package moved to organization

* readme updated

* typo fixed

* volume increased

* missing files added

* webpack setup

* my renderer removed

* fetch samples impl
performCompose called

* soundfont generation complete

* playback is working !

* depecndecy build script added

* removed files readded

* build js-synth step added to CI

* * CI branch added
* player workflow opimized
* license changed to matching to js-synthesizer

* loading speed of smaples improves

* set parcel version fix to 1.12.3 due this bug:
parcel-bundler/parcel#5955

* sfcompose version udpated

* stop handling improved

* dependencies set up as dev dependencies

* download last soundfont hack imp

* sf issues fixed

* * buffer size changable
* repo url changable

* synth rendering using audioworklet

* build process optimized

* jsbuild as dev dependency

* fixed audioworklet version

* * event notification after player play

* prerenders the whole file now

* repo url changed, blocksize changed

* percussion handling changed

* rendering via webworker impl

* webworker block rendering impl

* js-buildsynth replaced by parcel fs

* renderer stop behaviour improved

* renderer block size options changed to rendererBufferSeconds

* jssynth preload optimized

* start/stop behaviour improved

* early stop bug fixed

* test

* test 2

* test 3

* merge saved

Co-authored-by: samba <samba@manjaro>
Co-authored-by: Samba Godschynski <[email protected]>
SambaGodschynski added a commit to werckme/werckmeister-component that referenced this issue Mar 24, 2021
* midiplayer with fluidsynth support

* updated midiplayer version

* set parcel version fix to 1.12.3 due this bug:
parcel-bundler/parcel#5955

* midi player version up to 9

* midiplayer update

* buffersize, repo url options added

* midiplayer version updated

* * midipayer updated
* audio buffer size option removed

* unused code removed

* midiplayer updated

* midiplayer version updated

* midiplayer updated

* version updated

* deactivated source maps for dev scripts, because it fails to compile, due the js-synthesizer script is loaded using parcels fs process

* midi player version updated

* update test

* version updated

* midiplayer version updated

Co-authored-by: samba <samba@manjaro>
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

5 participants