chrisdmacrae / parceleventy

An @11ty/eleventy starter using parcel-bundler for production bundling
42 stars 2 forks source link

/html5boilerplate.njk: "version" is a required argument. #22

Closed trickydisco78 closed 5 years ago

trickydisco78 commented 5 years ago

Getting an error when building. Cloned the repo, installed and get this when i do the 'run' command

trickydisco78 commented 5 years ago

Realised it might be an issue when using yarn install as opposed to npm install

chrisdmacrae commented 5 years ago

@trickydisco78 thanks for the additional information; will look into this asap

chrisdmacrae commented 5 years ago

@trickydisco78 could not reproduce

m1chaeljmk commented 5 years ago

Also getting this issue:

🚨  /Users/mkor/sites/eleventy-starter-parcel/src/includes/extends/html5boilerplate.njk: "version" is a required argument.
at Object.getArg (/Users/mkor/sites/eleventy-starter-parcel/node_modules/parcel-bundler/node_modules/source-map/lib/util.js:24:11)
at new BasicSourceMapConsumer (/Users/mkor/sites/eleventy-starter-parcel/node_modules/parcel-bundler/node_modules/source-map/lib/source-map-consumer.js:294:22)
at new SourceMapConsumer (/Users/mkor/sites/eleventy-starter-parcel/node_modules/parcel-bundler/node_modules/source-map/lib/source-map-consumer.js:22:7)
at SourceMap.getConsumer (/Users/mkor/sites/eleventy-starter-parcel/node_modules/parcel-bundler/src/SourceMap.js:38:12)
at SourceMap.extendSourceMap (/Users/mkor/sites/eleventy-starter-parcel/node_modules/parcel-bundler/src/SourceMap.js:149:29)
at JSAsset.generate (/Users/mkor/sites/eleventy-starter-parcel/node_modules/parcel-bundler/src/assets/JSAsset.js:159:50)
at JSAsset.process (/Users/mkor/sites/eleventy-starter-parcel/node_modules/parcel-bundler/src/Asset.js:216:35)
Service worker generated at: /Users/mkor/sites/eleventy-starter-parcel/dist/sw.js
cs224 commented 5 years ago

For me the problem happened when I tried to run "npm audit fix". The project in its current state works as expected.

levabala commented 4 years ago

The same error

🚨  /home/levabala/projects/parcel-typescript-sass-starter/src/serviceWorker.ts: "version" is a required argument.
[5:14:57 PM]:     at Object.getArg (/usr/local/lib/node_modules/parcel/node_modules/source-map/lib/util.js:24:11)
    at new BasicSourceMapConsumer (/usr/local/lib/node_modules/parcel/node_modules/source-map/lib/source-map-consumer.js:294:22)
    at new SourceMapConsumer (/usr/local/lib/node_modules/parcel/node_modules/source-map/lib/source-map-consumer.js:22:7)
    at SourceMap.getConsumer (/usr/local/lib/node_modules/parcel/src/SourceMap.js:38:12)
    at SourceMap.extendSourceMap (/usr/local/lib/node_modules/parcel/src/SourceMap.js:149:29)
    at JSAsset.generate (/usr/local/lib/node_modules/parcel/src/assets/JSAsset.js:159:50)
    at JSAsset.process (/usr/local/lib/node_modules/parcel/src/Asset.js:217:35)