Comments (5)
Hi @lukiffer, sorry you're encountering an issue with this package!
Could you please run the failing command with the DEBUG=import-from-esm
env variable? This will log every path it has tried to resolve.
from import-from-esm.
Here's the actual output: https://gist.github.com/lukiffer/fd3f0b38960555b7bb808fdb5edc42f7
(I think) the issue is with the first resolve attempt:
Trying to resolve '@bdrk/semantic-release-config/npm'
In this case, a file does in fact exist at node_modules/@bdrk/semantic-release-config/npm/index.js
but is throwing ERR_MODULE_NOT_FOUND
.
Moving the file to ./npm.js
(with type="commonjs"
in package.json
) or moving it to ./npm.cjs
both work fine. So it seems like it's either not trying the index.js
default, or having some trouble locating it.
from import-from-esm.
Ok, I found the issue. I'm working on a fix and should be releasing that in the next few hours, will keep you updated. Thanks for the heads up!
from import-from-esm.
🎉 This issue has been resolved in version 1.3.4 🎉
The release is available on:
Your semantic-release bot 📦🚀
from import-from-esm.
Renovate should update the dependency on the various @semantic-release repos in the next few hours!
Feel free to reopen if you're still getting an issue after upgrading 😄
EDIT: forgot @semantic-release repositories didn't use pinned versions, so you just need to update your lockfile with npm update import-from-esm
, but it seems you're using npx
to run semantic-release
so none of the above should be needed :)
from import-from-esm.
Related Issues (11)
- Goals & purpose of this library HOT 1
- Dependency Dashboard
- Error on npm install HOT 5
- test: split fuzz testing from main test workflow
- node_modules/import-from-esm/index"' has no default export HOT 2
- feat: support loading packages' JSON index and main HOT 1
- test: check importFrom outcome against require's in e2e and fuzz tests
- Yarn pnp nodeLinker does not work HOT 5
- `exports` are not resolved correctly HOT 1
- import-from-esm abstracts CommonJS/ESM file extension errors
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 import-from-esm.