Parcel v2: "from" node not found
See original GitHub issue🐛 bug report
Running parcel v2 on a real project it throws with "from" node '13fdc5570c2ac6b8eb5e93969ac5d141' not found
.
When adding the --no-scope-hoist
flag it is working.
I am executing ../parcel/packages/core/parcel/src/bin.js build src/client/client.tsx
.
🎛 Configuration (.babelrc, package.json, cli command)
I use typescript, custom babel config, postcss (with css modules activated).
🤔 Expected Behavior
It should bundle the app and include all required dependencies.
😯 Current Behavior
It is failing with the following error:
🚨"from" node '13fdc5570c2ac6b8eb5e93969ac5d141' not found
at Graph.addEdge (/.../parcel/packages/core/core/src/Graph.js:97:13)
at addEdge (/.../parcel/packages/core/core/src/BundleGraph.js:616:15)
at BundlerRunner.bundle (/.../parcel/packages/core/core/src/BundlerRunner.js:64:23)
at Parcel.build (/.../parcel/packages/core/core/src/Parcel.js:223:25)
at Parcel.run (/.../parcel/packages/core/core/src/Parcel.js:139:18)
at Command.run (/.../parcel/packages/core/parcel/src/cli.js:174:7)
💁 Possible Solution
As mentioned above, it is working without scope hoisting.
🔦 Context
The project I am running this on is currently bundled with parcel v1 and I try to migrate/ test to the new version.
I added a log in BundleGraph.js:616
with console.log(edge)
to gather more information. It shows the following:
{
from: '@@root',
to: 'entry_specifier:/.../src/client/client.tsx',
type: null
}
{
from: 'entry_specifier:/.../src/client/client.tsx',
to: 'entry_file:/<path>/src/client/client.tsx',
type: null
}
{
from: 'entry_file:/.../src/client/client.tsx',
to: 'b79348f5132bf6692abe9552f2d5f089',
type: null
}
{
from: '13fdc5570c2ac6b8eb5e93969ac5d141',
to: '759c86fd2b3fc999136531d4ec7ad08c',
type: null
}
Variable to
in this context is 759c86fd2b3fc999136531d4ec7ad08c
, type is null
.
💻 Code Sample
As I don’t have any idea where this fails I have a hard time to get something to reproduce. If you have questions that help finding out what is going wrong, I am happy to investigate further!
🌍 Your Environment
Software | Version(s) |
---|---|
Parcel | v2 (eedc965377940034cf78a026d581f12098df724e) |
Node | v12.11.1 |
Yarn | v1.19.1 |
Operating System | Max OS X 10.14.6 |
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (6 by maintainers)
Have you tried clearing the cache?
Didn’t saw that for a while, I think it is fixed 😃