question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 4 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mischniccommented, Oct 13, 2019

Have you tried clearing the cache?

0reactions
garthenwebcommented, Feb 14, 2020

Didn’t saw that for a while, I think it is fixed 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Parcel command not found - node.js - Stack Overflow
To run any installed node package (not just Parcel), use npx , the utility command shipped with npm. It executes packages that come...
Read more >
Migration - Parcel
The first thing to note when upgrading from Parcel 1 to Parcel 2 is that the npm package name has changed from parcel-bundler...
Read more >
Parcel doesn't install - HTML/CSS - Code with Mosh Forum
I saw many faced this issue but i don't manage to fix it. I even got this message: npm ERR! gyp ERR! find...
Read more >
@parcel/watcher - npm
A native C++ Node module for querying and subscribing to filesystem events. Used by Parcel 2.. Latest version: 2.0.7, last published: 2 ...
Read more >
@parcel/watcher - npm Package Health Analysis | Snyk
Used by Parcel 2. ... Latest version published 2 months ago. License: MIT. NPM ... Looks like @parcel/watcher is missing a security policy....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found