Closed Richard87 closed 2 years ago
Does this happen on every run? Can you share a reproduction (e.g. take that project, and try to remove all internal code while still making sure that error occurs)
It happens on every single run. I deleted all my source-code, and created a simple test.js
only containing console.log("Hello wrodl!");
Still the exact same error message!
This is my package.json
(with modified targets):
{
"private": true,
"license": "PROPRIETARY",
"dependencies": {
"@date-io/date-fns": "^2.14.0",
"@fortawesome/fontawesome-pro": "^5.11.2",
"@fortawesome/fontawesome-svg-core": "^1.3.0",
"@fortawesome/free-solid-svg-icons": "^5.11.2",
"@fortawesome/pro-light-svg-icons": "^5.11.2",
"@fortawesome/pro-solid-svg-icons": "^5.11.2",
"@fortawesome/react-fontawesome": "^0.1.18",
"@mui/icons-material": "^5.8.0",
"@mui/lab": "^5.0.0-alpha.82",
"@mui/material": "^5.8.0",
"@mui/styled-engine": "npm:@mui/styled-engine-sc@latest",
"@mui/styled-engine-sc": "^5.8.0",
"@mui/styles": "^5.8.0",
"@mui/system": "^5.8.0",
"@mui/x-data-grid": "^5.11.1",
"@mui/x-data-grid-generator": "^5.11.1",
"@mui/x-data-grid-pro": "^5.11.1",
"@popmotion/popcorn": "^0.4.4",
"@prettier/plugin-php": "^0.18.4",
"axios": "^0.27.2",
"babel-plugin-styled-components": "^2.0.7",
"chart.js": "^2.9.4",
"date-fns": "^2.28.0",
"dotenv": "^16.0.1",
"es-abstract": "^1.20.1",
"fast-json-patch": "^3.1.1",
"find-index": "^1.1.1",
"firebase": "^8.2.11-202121002818",
"framer-motion": "^6.3.3",
"google-libphonenumber": "^3.2.27",
"jodit": "^3.18.5",
"lodash": "^4.17.21",
"lz-string": "^1.4.4",
"outdated-browser": "^1.0.2",
"rc-slider": "^9.7.5",
"rc-steps": "^4.1.4",
"react": "^17.0.2",
"react-bootstrap": "https://github.com/Richard87/react-bootstrap#dist/bumpCoreJs",
"react-chartjs-2": "^2.11.2",
"react-datepicker": "4.8.0",
"react-dom": "^17.0.2",
"react-dropzone": "^10.2.2",
"react-image-crop": "^8.6.12",
"react-is": "^17.0.2",
"react-query": "^3.39.0",
"react-redux": "^7.2.8",
"react-router": "^6.3.0",
"react-router-dom": "^6.3.0",
"react-select": "^3.2.0",
"react-toastify": "8.2.0",
"react-transition-group": "^4.4.2",
"redux": "^4.2.0",
"redux-devtools-extension": "^2.13.9",
"redux-dynamic-middlewares": "^1.0.0",
"redux-thunk": "^2.4.1",
"stackdriver-errors-js": "^0.12.0",
"styled-components": "^5.3.5",
"tslib": "2.4.0",
"twilio-video": "^2.21.1",
"typescript": "^4.6.4",
"ua-parser-js": "0.7.31"
},
"browserslist": [
"last 2 version",
"> 1%",
"IE 10 - 11"
],
"resolutions": {
"@mui/styled-engine": "npm:@mui/styled-engine-sc@latest"
},
"targets": {
"app": {
"source": "./assets/test.js",
"distDir": "../backend/public/build2"
}
},
"devDependencies": {
"@babel/core": "^7.18.0",
"@parcel/config-default": "^2.6.2",
"@parcel/core": "^2.6.2",
"@parcel/transformer-sass": "2.6.2",
"@typescript-eslint/eslint-plugin": "^5.25.0",
"@typescript-eslint/parser": "^5.25.0",
"buffer": "^6.0.3",
"eslint": "^8.15.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.30.0",
"events": "^3.3.0",
"husky": "^8.0.1",
"lint-staged": "^13.0.1",
"openapi-typescript": "^5.3.0",
"parcel": "^2.6.2",
"parcel-reporter-bundle-manifest": "https://github.com/Richard87/parcel-reporter-bundle-manifest#1648404b31b7018b4be1127ef59305e605b69b93",
"prettier": "^2.6.2",
"process": "^0.11.10",
"source-map-explorer": "^2.5.2",
"util": "^0.12.4"
}
}
With the JS file at assets/test.js
, changing the distDir to ./backend/public/build2
and then running parcel build
, it works fine for me.
Are you in a monorepo?
no, I have ./backend (with composer/php) and ./frontend (yarn /js/ts).
Yup, agree, I think something weird on my environment is influencing parcel somehow, but I don't understand it, and the error message does not help me much :/
Also, I have deleted parcel cache between every run, tested with and without NODE_OPTIONS=--no-experimental-fetch
that I read somewhere might help
This is what I recreated from your instructions (which works for me): https://github.com/mischnic/parcel-issue-8290
You are completley right, cloning it and running on my machine worked perfectly!
Interresting! When copying over my yarn.lock-file, and reinstalling dependencies, Parcel failed again with this error:
/opt/homebrew/bin/yarn run build
yarn run v1.22.19
$ parcel build
🚨 Build failed.
@parcel/optimizer-terser: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer
Error: You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ 'lib/mappings.wasm': ... }) before using SourceMapConsumer
at readWasm (/Users/richard/Projects/parcel-issue-8290/frontend/node_modules/terser/node_modules/source-map/lib/read-wasm.js:8:13)
at wasm (/Users/richard/Projects/parcel-issue-8290/frontend/node_modules/terser/node_modules/source-map/lib/wasm.js:25:16)
at /Users/richard/Projects/parcel-issue-8290/frontend/node_modules/terser/node_modules/source-map/lib/source-map-consumer.js:264:14
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SourceMap (/Users/richard/Projects/parcel-issue-8290/frontend/node_modules/terser/dist/bundle.min.js:19385:20)
at async minify (/Users/richard/Projects/parcel-issue-8290/frontend/node_modules/terser/dist/bundle.min.js:27785:41)
at async Object.optimize (/Users/richard/Projects/parcel-issue-8290/frontend/node_modules/@parcel/optimizer-terser/lib/TerserOptimizer.js:131:16)
at async PackagerRunner.optimize (/Users/richard/Projects/parcel-issue-8290/frontend/node_modules/@parcel/core/lib/PackagerRunner.js:364:20)
at async PackagerRunner.getBundleResult (/Users/richard/Projects/parcel-issue-8290/frontend/node_modules/@parcel/core/lib/PackagerRunner.js:255:15)
at async PackagerRunner.getBundleInfo (/Users/richard/Projects/parcel-issue-8290/frontend/node_modules/@parcel/core/lib/PackagerRunner.js:239:9)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Process finished with exit code 1
Which I have seen before!
Adding NODE_OPTIONS=--no-experimental-fetch
to the environment solved that issue.
But I can not recreate the error from my repo yet, and i dont understand how suddenly the method resolve()
can stop existing
I added console.error at in loadPlugin, and it failed when loading these packages, but it changed slightly with each run:
/opt/homebrew/bin/node /Users/richard/Projects/skil/eportal/frontend/node_modules/.bin/parcel build
🚨 Build failed.
Error: options.packageManager.resolve is not a function
TypeError: options.packageManager.resolve is not a function
at loadPlugin (/Users/richard/Projects/skil/eportal/frontend/node_modules/parcel/node_modules/@parcel/core/lib/loadParcelPlugin.js:127:38)
at async ParcelConfig.loadPlugin (/Users/richard/Projects/skil/eportal/frontend/node_modules/parcel/node_modules/@parcel/core/lib/ParcelConfig.js:117:18)
at async Promise.all (index 0)
at async Transformation.loadPipeline (/Users/richard/Projects/skil/eportal/frontend/node_modules/parcel/node_modules/@parcel/core/lib/Transformation.js:505:24)
at async Transformation.run (/Users/richard/Projects/skil/eportal/frontend/node_modules/parcel/node_modules/@parcel/core/lib/Transformation.js:179:20)
at async Child.handleRequest (/Users/richard/Projects/skil/eportal/frontend/node_modules/parcel/node_modules/@parcel/workers/lib/child.js:217:9)
console: options.packageManager.resolve is not a function {
pluginName: '@parcel/transformer-js',
resolveFrom: '/Users/richard/Projects/skil/eportal/frontend/node_modules/@parcel/config-default/index.json'
}
console: options.packageManager.resolve is not a function {
pluginName: '@parcel/transformer-react-refresh-wrap',
resolveFrom: '/Users/richard/Projects/skil/eportal/frontend/node_modules/@parcel/config-default/index.json'
}
console: options.packageManager.resolve is not a function {
pluginName: '@parcel/transformer-css',
resolveFrom: '/Users/richard/Projects/skil/eportal/frontend/node_modules/@parcel/config-default/index.json'
}
Process finished with exit code 1
I added some information about the resolve function, and as you can see, suddenly its missing (sorry about the long log, I recommend to start at the bottom!)
console: {
pluginName: 'parcel-reporter-bundle-manifest',
resolve: [AsyncFunction: resolve]
}
console: {
pluginName: 'parcel-reporter-bundle-manifest',
resolve: [AsyncFunction: resolve]
}
console: {
pluginName: 'parcel-reporter-bundle-manifest',
resolve: [AsyncFunction: resolve]
}
// 100s of AsyncFunctions
console: {
pluginName: 'parcel-reporter-bundle-manifest',
resolve: [AsyncFunction: resolve]
}
console: {
pluginName: 'parcel-reporter-bundle-manifest',
resolve: [AsyncFunction: resolve]
}
console: {
pluginName: 'parcel-reporter-bundle-manifest',
resolve: [AsyncFunction: resolve]
}
console: {
pluginName: 'parcel-reporter-bundle-manifest',
resolve: [AsyncFunction: resolve]
}
console: {
pluginName: '@parcel/reporter-cli',
resolve: [AsyncFunction: resolve]
}
console: {
pluginName: '@parcel/reporter-dev-server',
resolve: [AsyncFunction: resolve]
}
🚨 Build failed.
Error: options.packageManager.resolve is not a function
TypeError: options.packageManager.resolve is not a function
at loadPlugin (/Users/richard/Projects/skil/eportal/frontend/node_modules/parcel/node_modules/@parcel/core/lib/loadParcelPlugin.js:128:38)
at async ParcelConfig.loadPlugin (/Users/richard/Projects/skil/eportal/frontend/node_modules/parcel/node_modules/@parcel/core/lib/ParcelConfig.js:117:18)
at async Promise.all (index 0)
at async Transformation.loadPipeline (/Users/richard/Projects/skil/eportal/frontend/node_modules/parcel/node_modules/@parcel/core/lib/Transformation.js:505:24)
at async Transformation.run (/Users/richard/Projects/skil/eportal/frontend/node_modules/parcel/node_modules/@parcel/core/lib/Transformation.js:179:20)
at async Child.handleRequest (/Users/richard/Projects/skil/eportal/frontend/node_modules/parcel/node_modules/@parcel/workers/lib/child.js:217:9)
console: { pluginName: '@parcel/transformer-css', resolve: undefined }
console: {
pluginName: '@parcel/transformer-react-refresh-wrap',
resolve: undefined
}
console: { pluginName: '@parcel/transformer-js', resolve: undefined }
Process finished with exit code 1
Is options.packageManager
suddenly a different object, or does something override the resolve function? The latter could be caught by adding a setter for NodePackageManager#resolve
and log the trace when it happens.
Adding NODE_OPTIONS=--no-experimental-fetch to the environment solved that issue.
That is apparently a problem with Node 18, but not really related to this error itself.
it failed when loading these packages, but it changed slightly with each run:
The build happens in parallel and the order in which files are processed usually differs from run to run , so that's not surprising.
Yup, agree about the paralllel builds!
I set a random id (Math.random() * 1000
in the constructor of NodePluginManager and logged it at the same place... It doesn't change.
But I have not found out how to track when the variable is reset yet, is the only solution to wrap the NodePackageManager in a Proxy class?
And I really appreciate you taking the time to help out! 🙏
For the record... my logs :)
console: parcel-reporter-bundle-manifest [AsyncFunction: resolve] 1263.5476921813372
console: parcel-reporter-bundle-manifest [AsyncFunction: resolve] 1263.5476921813372
console: parcel-reporter-bundle-manifest [AsyncFunction: resolve] 1263.5476921813372
🚨 Build failed.
Error: options.packageManager.resolve is not a function
TypeError: options.packageManager.resolve is not a function
at loadPlugin (/Users/richard/Projects/skil/eportal/frontend/node_modules/parcel/node_modules/@parcel/core/lib/loadParcelPlugin.js:128:38)
at async ParcelConfig.loadPlugin (/Users/richard/Projects/skil/eportal/frontend/node_modules/parcel/node_modules/@parcel/core/lib/ParcelConfig.js:117:18)
at async Promise.all (index 0)
at async Transformation.loadPipeline (/Users/richard/Projects/skil/eportal/frontend/node_modules/parcel/node_modules/@parcel/core/lib/Transformation.js:505:24)
at async Transformation.run (/Users/richard/Projects/skil/eportal/frontend/node_modules/parcel/node_modules/@parcel/core/lib/Transformation.js:179:20)
at async Child.handleRequest (/Users/richard/Projects/skil/eportal/frontend/node_modules/parcel/node_modules/@parcel/workers/lib/child.js:217:9)
console: @parcel/transformer-babel undefined 1263.5476921813372
console: @parcel/transformer-react-refresh-wrap undefined 1263.5476921813372
Either a Proxy wrapper, or potentially changing resolve
into a class setter and getter might work (using this syntax https://github.com/parcel-bundler/parcel/blob/99cf50510995112722f76f115dc7f2fd21587f34/packages/core/core/src/public/Asset.js#L236-L245)
Awesome, thanks, I did this:
get resolve() {
console.error("getting resolve2", this.resolve2, this.id)
return this.resolve2
}
set resolve(resolve2) {
console.error("Setting resolve", resolve2, this.id)
this.resolve2 = resolve2
}
async resolve2(name, from, options) {
...
}
But no "setting resolve" appeared (bunch of getters tho!)
So increadibly strange!
console: getting resolve2 [AsyncFunction: resolve2] 7957.924497049573
console: getting resolve2 [AsyncFunction: resolve2] 7957.924497049573
console: getting resolve2 [AsyncFunction: resolve2] 7957.924497049573
console: getting resolve2 [AsyncFunction: resolve2] 7957.924497049573
console: getting resolve2 [AsyncFunction: resolve2] 7957.924497049573
console: getting resolve2 [AsyncFunction: resolve2] 7957.924497049573
console: getting resolve2 [AsyncFunction: resolve2] 7957.924497049573
console: getting resolve2 [AsyncFunction: resolve2] 7957.924497049573
console: getting resolve2 [AsyncFunction: resolve2] 7957.924497049573
console: getting resolve2 [AsyncFunction: resolve2] 7957.924497049573
console: getting resolve2 [AsyncFunction: resolve2] 7957.924497049573
console: getting resolve2 [AsyncFunction: resolve2] 7957.924497049573
console: getting resolve2 [AsyncFunction: resolve2] 7957.924497049573
console: getting resolve2 [AsyncFunction: resolve2] 7957.924497049573
🚨 Build failed.
Error: options.packageManager.resolve is not a function
TypeError: options.packageManager.resolve is not a function
at loadPlugin (/Users/richard/Projects/skil/eportal/frontend/node_modules/parcel/node_modules/@parcel/core/lib/loadParcelPlugin.js:127:38)
at async ParcelConfig.loadPlugin (/Users/richard/Projects/skil/eportal/frontend/node_modules/parcel/node_modules/@parcel/core/lib/ParcelConfig.js:117:18)
at async Promise.all (index 1)
at async Transformation.loadPipeline (/Users/richard/Projects/skil/eportal/frontend/node_modules/parcel/node_modules/@parcel/core/lib/Transformation.js:505:24)
at async Transformation.run (/Users/richard/Projects/skil/eportal/frontend/node_modules/parcel/node_modules/@parcel/core/lib/Transformation.js:179:20)
at async Child.handleRequest (/Users/richard/Projects/skil/eportal/frontend/node_modules/parcel/node_modules/@parcel/workers/lib/child.js:217:9)
console: @parcel/transformer-js undefined 7957.924497049573
Process finished with exit code 1
That must mean it's the first case and not the second:
Is
options.packageManager
suddenly a different object, or does something override the resolve function? The latter could be caught by adding a setter forNodePackageManager#resolve
and log the trace when it happens.
Have you tried logging options.packageManager
when options.packageManager.resolve
is undefined?
But thats the weird thing, should the id set in the constructor change if packageManager is a new object? (I see serialize and deserialize methods, but logging anything, or adding breakpoints there are never triggered).
In the log above, the id 7957.924497049573
is the same before and after the resolve is magically changed to undefined
Ah, no it shouldn't. I guess something wrapping the object with a proxy could both keep the same id and also change the resolve method. But theses hypotheses are sounding more and more unlikely 🤷
Lol, thinking about reinstalling my machine, nothing makes sense anymore
Any chance your lockfile contain multiple versions of some of the @parcel/*
packages?
Yes actually! I search for PackageManager earlier and found atleast 2!
cat yarn.lock| grep parcel
:
cat yarn.lock| grep parcel
"@parcel/bundler-default@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/bundler-default/-/bundler-default-2.6.2.tgz#bfa1be22af985ba2d6dbf1890a36ad4553f819d4"
"@parcel/diagnostic" "2.6.2"
"@parcel/hash" "2.6.2"
"@parcel/plugin" "2.6.2"
"@parcel/utils" "2.6.2"
"@parcel/cache@2.4.1":
resolved "https://registry.npmjs.org/@parcel/cache/-/cache-2.4.1.tgz"
"@parcel/fs" "2.4.1"
"@parcel/logger" "2.4.1"
"@parcel/utils" "2.4.1"
"@parcel/cache@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/cache/-/cache-2.6.2.tgz#66163c8f8ac4aac865c4b9eb2197b0d9e6f91a74"
"@parcel/fs" "2.6.2"
"@parcel/logger" "2.6.2"
"@parcel/utils" "2.6.2"
"@parcel/codeframe@2.4.1":
resolved "https://registry.npmjs.org/@parcel/codeframe/-/codeframe-2.4.1.tgz"
"@parcel/codeframe@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/codeframe/-/codeframe-2.6.2.tgz#01a7ae97fdb66457e6704c87cc6031085e539e6e"
"@parcel/compressor-raw@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/compressor-raw/-/compressor-raw-2.6.2.tgz#6fec2654c7767a2fef042a37246549d41ee8a586"
"@parcel/plugin" "2.6.2"
"@parcel/config-default@2.6.2", "@parcel/config-default@^2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/config-default/-/config-default-2.6.2.tgz#0a1af0ce9a431771851c05fc821da13c8d878b7e"
"@parcel/bundler-default" "2.6.2"
"@parcel/compressor-raw" "2.6.2"
"@parcel/namer-default" "2.6.2"
"@parcel/optimizer-css" "2.6.2"
"@parcel/optimizer-htmlnano" "2.6.2"
"@parcel/optimizer-image" "2.6.2"
"@parcel/optimizer-svgo" "2.6.2"
"@parcel/optimizer-terser" "2.6.2"
"@parcel/packager-css" "2.6.2"
"@parcel/packager-html" "2.6.2"
"@parcel/packager-js" "2.6.2"
"@parcel/packager-raw" "2.6.2"
"@parcel/packager-svg" "2.6.2"
"@parcel/reporter-dev-server" "2.6.2"
"@parcel/resolver-default" "2.6.2"
"@parcel/runtime-browser-hmr" "2.6.2"
"@parcel/runtime-js" "2.6.2"
"@parcel/runtime-react-refresh" "2.6.2"
"@parcel/runtime-service-worker" "2.6.2"
"@parcel/transformer-babel" "2.6.2"
"@parcel/transformer-css" "2.6.2"
"@parcel/transformer-html" "2.6.2"
"@parcel/transformer-image" "2.6.2"
"@parcel/transformer-js" "2.6.2"
"@parcel/transformer-json" "2.6.2"
"@parcel/transformer-postcss" "2.6.2"
"@parcel/transformer-posthtml" "2.6.2"
"@parcel/transformer-raw" "2.6.2"
"@parcel/transformer-react-refresh-wrap" "2.6.2"
"@parcel/transformer-svg" "2.6.2"
"@parcel/core@2.6.2", "@parcel/core@^2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/core/-/core-2.6.2.tgz#c46d26e2f47967d80f08484f20d31fee7b90e888"
"@parcel/cache" "2.6.2"
"@parcel/diagnostic" "2.6.2"
"@parcel/events" "2.6.2"
"@parcel/fs" "2.6.2"
"@parcel/graph" "2.6.2"
"@parcel/hash" "2.6.2"
"@parcel/logger" "2.6.2"
"@parcel/package-manager" "2.6.2"
"@parcel/plugin" "2.6.2"
"@parcel/source-map" "^2.0.0"
"@parcel/types" "2.6.2"
"@parcel/utils" "2.6.2"
"@parcel/workers" "2.6.2"
"@parcel/css-darwin-arm64@1.10.1":
resolved "https://registry.yarnpkg.com/@parcel/css-darwin-arm64/-/css-darwin-arm64-1.10.1.tgz#47476d6162ff49d3d38af4dd6001c85097ff64de"
"@parcel/css-darwin-x64@1.10.1":
resolved "https://registry.yarnpkg.com/@parcel/css-darwin-x64/-/css-darwin-x64-1.10.1.tgz#1d41a511fa8f2ee62e507ca2f96d0bfdfc33db38"
"@parcel/css-linux-arm-gnueabihf@1.10.1":
resolved "https://registry.yarnpkg.com/@parcel/css-linux-arm-gnueabihf/-/css-linux-arm-gnueabihf-1.10.1.tgz#acfb4fd584cbc542f9e51dc03431446de8187548"
"@parcel/css-linux-arm64-gnu@1.10.1":
resolved "https://registry.yarnpkg.com/@parcel/css-linux-arm64-gnu/-/css-linux-arm64-gnu-1.10.1.tgz#c96b096467ae11436ea60f30db9c7f268dbe5185"
"@parcel/css-linux-arm64-musl@1.10.1":
resolved "https://registry.yarnpkg.com/@parcel/css-linux-arm64-musl/-/css-linux-arm64-musl-1.10.1.tgz#df1cf3f823acef2f78c855580baac6bf446d6761"
"@parcel/css-linux-x64-gnu@1.10.1":
resolved "https://registry.yarnpkg.com/@parcel/css-linux-x64-gnu/-/css-linux-x64-gnu-1.10.1.tgz#321493811e9f06b3cfc3e394c7b3e1cdc1187b99"
"@parcel/css-linux-x64-musl@1.10.1":
resolved "https://registry.yarnpkg.com/@parcel/css-linux-x64-musl/-/css-linux-x64-musl-1.10.1.tgz#6fa866b0512f6a48634491c0a1152c3ffa4aef84"
"@parcel/css-win32-x64-msvc@1.10.1":
resolved "https://registry.yarnpkg.com/@parcel/css-win32-x64-msvc/-/css-win32-x64-msvc-1.10.1.tgz#299642511b3f203ac55c2f783a880a5718ab0787"
"@parcel/css@^1.10.1":
resolved "https://registry.yarnpkg.com/@parcel/css/-/css-1.10.1.tgz#6c5ab376d5f51f4ad16d3c388490c14a8da4b3c6"
"@parcel/css-darwin-arm64" "1.10.1"
"@parcel/css-darwin-x64" "1.10.1"
"@parcel/css-linux-arm-gnueabihf" "1.10.1"
"@parcel/css-linux-arm64-gnu" "1.10.1"
"@parcel/css-linux-arm64-musl" "1.10.1"
"@parcel/css-linux-x64-gnu" "1.10.1"
"@parcel/css-linux-x64-musl" "1.10.1"
"@parcel/css-win32-x64-msvc" "1.10.1"
"@parcel/diagnostic@2.4.1":
resolved "https://registry.npmjs.org/@parcel/diagnostic/-/diagnostic-2.4.1.tgz"
"@parcel/diagnostic@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/diagnostic/-/diagnostic-2.6.2.tgz#da3fca0d82bc012f49288c963024edd089ca9f41"
"@parcel/events@2.4.1":
resolved "https://registry.npmjs.org/@parcel/events/-/events-2.4.1.tgz"
"@parcel/events@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/events/-/events-2.6.2.tgz#97a1059d1eb93df8d3d426b6b150f829f70f543b"
"@parcel/fs-search@2.4.1":
resolved "https://registry.npmjs.org/@parcel/fs-search/-/fs-search-2.4.1.tgz"
"@parcel/fs-search@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/fs-search/-/fs-search-2.6.2.tgz#6343a5da4f0753c96c004d6951897f83160c4d45"
"@parcel/fs@2.4.1":
resolved "https://registry.npmjs.org/@parcel/fs/-/fs-2.4.1.tgz"
"@parcel/fs-search" "2.4.1"
"@parcel/types" "2.4.1"
"@parcel/utils" "2.4.1"
"@parcel/watcher" "^2.0.0"
"@parcel/workers" "2.4.1"
"@parcel/fs@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/fs/-/fs-2.6.2.tgz#c3f4ab9f88df6c1416af7c2a7a31b68ced862a16"
"@parcel/fs-search" "2.6.2"
"@parcel/types" "2.6.2"
"@parcel/utils" "2.6.2"
"@parcel/watcher" "^2.0.0"
"@parcel/workers" "2.6.2"
"@parcel/graph@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/graph/-/graph-2.6.2.tgz#fe777666c6fa09cb89b1570932459a4b5e90b6aa"
"@parcel/utils" "2.6.2"
"@parcel/hash@2.4.1":
resolved "https://registry.npmjs.org/@parcel/hash/-/hash-2.4.1.tgz"
"@parcel/hash@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/hash/-/hash-2.6.2.tgz#485e31323036abdf3648ba7f8816985296f358ba"
"@parcel/logger@2.4.1":
resolved "https://registry.npmjs.org/@parcel/logger/-/logger-2.4.1.tgz"
"@parcel/diagnostic" "2.4.1"
"@parcel/events" "2.4.1"
"@parcel/logger@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/logger/-/logger-2.6.2.tgz#c99eed0e1ed13ac0c25f5e57355ab1bf5b3eda21"
"@parcel/diagnostic" "2.6.2"
"@parcel/events" "2.6.2"
"@parcel/markdown-ansi@2.4.1":
resolved "https://registry.npmjs.org/@parcel/markdown-ansi/-/markdown-ansi-2.4.1.tgz"
"@parcel/markdown-ansi@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/markdown-ansi/-/markdown-ansi-2.6.2.tgz#7511f6d32688f8d150828cdd1162774c102070e3"
"@parcel/namer-default@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/namer-default/-/namer-default-2.6.2.tgz#8034fb23d2013ae00e5b73e9f887553bef498075"
"@parcel/diagnostic" "2.6.2"
"@parcel/plugin" "2.6.2"
"@parcel/node-resolver-core@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/node-resolver-core/-/node-resolver-core-2.6.2.tgz#46381572e2829cd6b9424ea1cfd8c1330ab9ff4f"
"@parcel/diagnostic" "2.6.2"
"@parcel/utils" "2.6.2"
"@parcel/optimizer-css@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/optimizer-css/-/optimizer-css-2.6.2.tgz#ae6be6c889ccd19de4868f2e4813e1c9356e4061"
"@parcel/css" "^1.10.1"
"@parcel/diagnostic" "2.6.2"
"@parcel/plugin" "2.6.2"
"@parcel/source-map" "^2.0.0"
"@parcel/utils" "2.6.2"
"@parcel/optimizer-htmlnano@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/optimizer-htmlnano/-/optimizer-htmlnano-2.6.2.tgz#4ca52869708cd154f6eae09012748e769d51f214"
"@parcel/plugin" "2.6.2"
"@parcel/optimizer-image@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/optimizer-image/-/optimizer-image-2.6.2.tgz#2917f493014ae1b32580c0b8cf5c77bfe17b6949"
"@parcel/diagnostic" "2.6.2"
"@parcel/plugin" "2.6.2"
"@parcel/utils" "2.6.2"
"@parcel/workers" "2.6.2"
"@parcel/optimizer-svgo@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/optimizer-svgo/-/optimizer-svgo-2.6.2.tgz#e68cbc3d99694adb671244b6df435e1d311ca033"
"@parcel/diagnostic" "2.6.2"
"@parcel/plugin" "2.6.2"
"@parcel/utils" "2.6.2"
"@parcel/optimizer-terser@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/optimizer-terser/-/optimizer-terser-2.6.2.tgz#3361e2fd51bfdf6736f1e85afb9d6bed207cdb60"
"@parcel/diagnostic" "2.6.2"
"@parcel/plugin" "2.6.2"
"@parcel/source-map" "^2.0.0"
"@parcel/utils" "2.6.2"
"@parcel/package-manager@2.4.1":
resolved "https://registry.npmjs.org/@parcel/package-manager/-/package-manager-2.4.1.tgz"
"@parcel/diagnostic" "2.4.1"
"@parcel/fs" "2.4.1"
"@parcel/logger" "2.4.1"
"@parcel/types" "2.4.1"
"@parcel/utils" "2.4.1"
"@parcel/workers" "2.4.1"
"@parcel/package-manager@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/package-manager/-/package-manager-2.6.2.tgz#003e8326adf95f85b2a40bb5e5f24a735d58f114"
"@parcel/diagnostic" "2.6.2"
"@parcel/fs" "2.6.2"
"@parcel/logger" "2.6.2"
"@parcel/types" "2.6.2"
"@parcel/utils" "2.6.2"
"@parcel/workers" "2.6.2"
"@parcel/packager-css@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/packager-css/-/packager-css-2.6.2.tgz#1b8119888f7278612b18b6d08f623e3309b45190"
"@parcel/plugin" "2.6.2"
"@parcel/source-map" "^2.0.0"
"@parcel/utils" "2.6.2"
"@parcel/packager-html@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/packager-html/-/packager-html-2.6.2.tgz#ed3e6862bfe419472c68ec81f46cf6f825694051"
"@parcel/plugin" "2.6.2"
"@parcel/types" "2.6.2"
"@parcel/utils" "2.6.2"
"@parcel/packager-js@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/packager-js/-/packager-js-2.6.2.tgz#16257b343480490adea619671b56d9cd02c8302a"
"@parcel/diagnostic" "2.6.2"
"@parcel/hash" "2.6.2"
"@parcel/plugin" "2.6.2"
"@parcel/source-map" "^2.0.0"
"@parcel/utils" "2.6.2"
"@parcel/packager-raw@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/packager-raw/-/packager-raw-2.6.2.tgz#67f136cc8b404edeb4092ea5f56d277e0e60d0c6"
"@parcel/plugin" "2.6.2"
"@parcel/packager-svg@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/packager-svg/-/packager-svg-2.6.2.tgz#fa21e605640f71a59cc3f5095531d7bed368df77"
"@parcel/plugin" "2.6.2"
"@parcel/types" "2.6.2"
"@parcel/utils" "2.6.2"
"@parcel/plugin@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/plugin/-/plugin-2.6.2.tgz#d4c8cc558e962e4dfb7154a7f0a023f6abad07ac"
"@parcel/types" "2.6.2"
"@parcel/plugin@^2.0.0":
resolved "https://registry.npmjs.org/@parcel/plugin/-/plugin-2.4.1.tgz"
"@parcel/types" "2.4.1"
"@parcel/reporter-cli@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/reporter-cli/-/reporter-cli-2.6.2.tgz#df971ce40164f2d6bd77dd6342203aa0052d9753"
"@parcel/plugin" "2.6.2"
"@parcel/types" "2.6.2"
"@parcel/utils" "2.6.2"
"@parcel/reporter-dev-server@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/reporter-dev-server/-/reporter-dev-server-2.6.2.tgz#73e82c7bd6bbe47de61b2170ac9b7799c4e850fd"
"@parcel/plugin" "2.6.2"
"@parcel/utils" "2.6.2"
"@parcel/resolver-default@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/resolver-default/-/resolver-default-2.6.2.tgz#b417fb4f9713f5bdeceab737ae1dacb8322f2778"
"@parcel/node-resolver-core" "2.6.2"
"@parcel/plugin" "2.6.2"
"@parcel/runtime-browser-hmr@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/runtime-browser-hmr/-/runtime-browser-hmr-2.6.2.tgz#121fe22b5df6b7a8591a23632146c008448240a5"
"@parcel/plugin" "2.6.2"
"@parcel/utils" "2.6.2"
"@parcel/runtime-js@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/runtime-js/-/runtime-js-2.6.2.tgz#cc46ec03d4fe2a4832cd7709431afba857bd37e0"
"@parcel/plugin" "2.6.2"
"@parcel/utils" "2.6.2"
"@parcel/runtime-react-refresh@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/runtime-react-refresh/-/runtime-react-refresh-2.6.2.tgz#4504cea4468fbeabf4a94c99a991251c7cd04c59"
"@parcel/plugin" "2.6.2"
"@parcel/utils" "2.6.2"
"@parcel/runtime-service-worker@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/runtime-service-worker/-/runtime-service-worker-2.6.2.tgz#f1ea3e768f8ae9d2f5ec119db020595933185393"
"@parcel/plugin" "2.6.2"
"@parcel/utils" "2.6.2"
"@parcel/source-map@^2.0.0":
resolved "https://registry.yarnpkg.com/@parcel/source-map/-/source-map-2.0.5.tgz#7dabcea0890914c390b8cf32e208d3f667e1ff38"
"@parcel/transformer-babel@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/transformer-babel/-/transformer-babel-2.6.2.tgz#0ad994cb4ec4127e544b10e70c884409270f26a6"
"@parcel/diagnostic" "2.6.2"
"@parcel/plugin" "2.6.2"
"@parcel/source-map" "^2.0.0"
"@parcel/utils" "2.6.2"
"@parcel/transformer-css@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/transformer-css/-/transformer-css-2.6.2.tgz#57470cd55ba2693e1e949c4872d59404745b9f52"
"@parcel/css" "^1.10.1"
"@parcel/diagnostic" "2.6.2"
"@parcel/plugin" "2.6.2"
"@parcel/source-map" "^2.0.0"
"@parcel/utils" "2.6.2"
"@parcel/transformer-html@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/transformer-html/-/transformer-html-2.6.2.tgz#015037625b2036951d6182e7d1b3fb2dec930049"
"@parcel/diagnostic" "2.6.2"
"@parcel/hash" "2.6.2"
"@parcel/plugin" "2.6.2"
"@parcel/transformer-image@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/transformer-image/-/transformer-image-2.6.2.tgz#aed1d3ac50f80441fbf6b08e2c1e3c92e58851e4"
"@parcel/plugin" "2.6.2"
"@parcel/workers" "2.6.2"
"@parcel/transformer-js@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/transformer-js/-/transformer-js-2.6.2.tgz#905285b5d6d8047d0420641dee257ee93bac69d8"
"@parcel/diagnostic" "2.6.2"
"@parcel/plugin" "2.6.2"
"@parcel/source-map" "^2.0.0"
"@parcel/utils" "2.6.2"
"@parcel/workers" "2.6.2"
"@parcel/transformer-json@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/transformer-json/-/transformer-json-2.6.2.tgz#37a5c3f4571c81e1a5f2d0c77f266b56e3866ad5"
"@parcel/plugin" "2.6.2"
"@parcel/transformer-postcss@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/transformer-postcss/-/transformer-postcss-2.6.2.tgz#6d613889b73b70ccd912a411c9b272bcf984b4dd"
"@parcel/diagnostic" "2.6.2"
"@parcel/hash" "2.6.2"
"@parcel/plugin" "2.6.2"
"@parcel/utils" "2.6.2"
"@parcel/transformer-posthtml@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/transformer-posthtml/-/transformer-posthtml-2.6.2.tgz#751ac1d520d42df40ab3d21f2bfe078545295cfb"
"@parcel/plugin" "2.6.2"
"@parcel/utils" "2.6.2"
"@parcel/transformer-raw@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/transformer-raw/-/transformer-raw-2.6.2.tgz#a77ffaa26d59fcf79b5094c1319b6f0922fffe7e"
"@parcel/plugin" "2.6.2"
"@parcel/transformer-react-refresh-wrap@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/transformer-react-refresh-wrap/-/transformer-react-refresh-wrap-2.6.2.tgz#680a3c724d8ada39a637a10f8cb7fdc33aa138eb"
"@parcel/plugin" "2.6.2"
"@parcel/utils" "2.6.2"
"@parcel/transformer-sass@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/transformer-sass/-/transformer-sass-2.6.2.tgz#fd8587cc3796508f7ba1b8daabb27bc215982042"
"@parcel/plugin" "2.6.2"
"@parcel/source-map" "^2.0.0"
"@parcel/transformer-svg@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/transformer-svg/-/transformer-svg-2.6.2.tgz#62795cfbc5ea083d0bd825d77ff0df3b717f05f9"
"@parcel/diagnostic" "2.6.2"
"@parcel/hash" "2.6.2"
"@parcel/plugin" "2.6.2"
"@parcel/types@2.4.1":
resolved "https://registry.npmjs.org/@parcel/types/-/types-2.4.1.tgz"
"@parcel/cache" "2.4.1"
"@parcel/diagnostic" "2.4.1"
"@parcel/fs" "2.4.1"
"@parcel/package-manager" "2.4.1"
"@parcel/source-map" "^2.0.0"
"@parcel/workers" "2.4.1"
"@parcel/types@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/types/-/types-2.6.2.tgz#216313bcaf625e59a2bd525a00c3b1f6701b0d92"
"@parcel/cache" "2.6.2"
"@parcel/diagnostic" "2.6.2"
"@parcel/fs" "2.6.2"
"@parcel/package-manager" "2.6.2"
"@parcel/source-map" "^2.0.0"
"@parcel/workers" "2.6.2"
"@parcel/utils@2.4.1":
resolved "https://registry.npmjs.org/@parcel/utils/-/utils-2.4.1.tgz"
"@parcel/codeframe" "2.4.1"
"@parcel/diagnostic" "2.4.1"
"@parcel/hash" "2.4.1"
"@parcel/logger" "2.4.1"
"@parcel/markdown-ansi" "2.4.1"
"@parcel/source-map" "^2.0.0"
"@parcel/utils@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/utils/-/utils-2.6.2.tgz#18d68a56330be8db59c269163b77617043ba8e3a"
"@parcel/codeframe" "2.6.2"
"@parcel/diagnostic" "2.6.2"
"@parcel/hash" "2.6.2"
"@parcel/logger" "2.6.2"
"@parcel/markdown-ansi" "2.6.2"
"@parcel/source-map" "^2.0.0"
"@parcel/watcher@^2.0.0":
resolved "https://registry.yarnpkg.com/@parcel/watcher/-/watcher-2.0.5.tgz#f913a54e1601b0aac972803829b0eece48de215b"
"@parcel/workers@2.4.1":
resolved "https://registry.npmjs.org/@parcel/workers/-/workers-2.4.1.tgz"
"@parcel/diagnostic" "2.4.1"
"@parcel/logger" "2.4.1"
"@parcel/types" "2.4.1"
"@parcel/utils" "2.4.1"
"@parcel/workers@2.6.2":
resolved "https://registry.yarnpkg.com/@parcel/workers/-/workers-2.6.2.tgz#2cae07db7a752295f11c2952b5026e426e38b19b"
"@parcel/diagnostic" "2.6.2"
"@parcel/logger" "2.6.2"
"@parcel/types" "2.6.2"
"@parcel/utils" "2.6.2"
"parcel-reporter-bundle-manifest@https://github.com/Richard87/parcel-reporter-bundle-manifest#1648404b31b7018b4be1127ef59305e605b69b93":
resolved "https://github.com/Richard87/parcel-reporter-bundle-manifest#1648404b31b7018b4be1127ef59305e605b69b93"
"@parcel/plugin" "^2.0.0"
parcel@^2.6.2:
resolved "https://registry.yarnpkg.com/parcel/-/parcel-2.6.2.tgz#4585208880f42b24935c7d3ad167dcd42f8174eb"
"@parcel/config-default" "2.6.2"
"@parcel/core" "2.6.2"
"@parcel/diagnostic" "2.6.2"
"@parcel/events" "2.6.2"
"@parcel/fs" "2.6.2"
"@parcel/logger" "2.6.2"
"@parcel/package-manager" "2.6.2"
"@parcel/reporter-cli" "2.6.2"
"@parcel/reporter-dev-server" "2.6.2"
"@parcel/utils" "2.6.2"
Omg @mischnic you are amazing! And it's completley my fault!
It was 2 versions of @parcel/package-manager's installed that got messed up, because my fork of parcel-reporter-bundle-manifest
included the lock-file, locked to 2.4.1
!
I deleted the lock-file, and upgraded parcel-reporter-bundle-manifest
, then suddenly the old version of @parcel/package-manager
was removed, and build worked perfect!
Thank you again for the help!!!
🐛 bug report
"Out of the blue" parcel stopped working on my local machine (Apple M1). Excactly the same configuratiion works great in Docker (x86), and on my colleagues machines (both M1).
I'm very confused to what is going on. I have tried Parcel 2.5.0 and 2.6.2, I have installed Node 16 and 18 with the excact same error.
It started happening a few weeks ago, but since I was planning to upgrade to 2.6.2, I didn't reach out for help, but since I'm completley stuck now, hoping someone here have an idea about what could be happening!
Both
parcel serve
andparcel build
results in the same error🎛 Configuration (.babelrc, package.json, cli command)
The command:
yarn run parcel serve --cache-dir ../.parcel-cache --dist-dir ../backend/public/build2 --port 8080 --hmr-port 8082 --host 127.0.0.1 --public-url http://localhost:8080/build2
🤔 Expected Behavior
Dev server starting to serve files, no errors should occur
😯 Current Behavior
💁 Possible Solution
🔦 Context
This has stopped me from beeing able to work on frontend code.
💻 Code Sample
🌍 Your Environment