Comments (5)
I put the comment so that the collaborators don't need to go through the code to find the assertion, it's just for reference.
@nodejs/loaders
from node.
@RedYetiDev Thank you for asking. The issue was happening due to how NodeJS and cosmiconfig managing/handling the case of imported/required modules. The solution was to use cosmisconfig to read the configuration file, rather than importing the configuration file directly.
from node.
The failed assertion is:
node/lib/internal/modules/esm/translators.js
Line 347 in af614c5
from node.
@RedYetiDev What does it mean for me? is this a Node.js bug? why the order of import matters?
from node.
Hey @electriquo, is this no longer an issue?
from node.
Related Issues (20)
- Erronous import failure message HOT 12
- test_runner: using module mocking confuses all future esm imports to use cjs path resolution HOT 3
- fetch failed with TypeError: Class extends value #<newConstructor> is not a constructor or null HOT 3
- v22.4.1 C++ addon incurs segmentation faults HOT 5
- Security question: Why are data: URIs and file: URIs treated differently in your security policy? HOT 5
- `ReadableStream.from({})` returns confusing error HOT 7
- `fsPromises.glob` doesn't call `exclude` with dirent when called `withFileTypes: true` HOT 3
- Web change HOT 2
- Add `--root-directory` optional flag for `node --run` HOT 4
- Easier MultiDimensional Array's HOT 2
- Support for running bin scripts using `node --run` HOT 4
- test: parallel/test-worker-node-options fails on IBM i HOT 1
- Got failure message - "FailureMessage Object: 0x7fedbceff920" HOT 1
- When `ReadableStream` read fails, stack trace does not include the line responsible HOT 7
- test_runner: do not read from `process.argv` and `process.cwd()` in run() HOT 3
- test_runner: remove global event handlers after run is completed HOT 4
- doc: clarify Web Storage behavior HOT 9
- https://stackblitz.com/connect/70dbe416
- Means to detect if the current code is run via `--import` HOT 16
- Domdiservices HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node.