New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SyntaxError in 3.2.10: The requested module 'file:///<path>package.json' does not provide an export named '<export>' #735
Comments
Still greatly appreciate this project, by the way! Massively enjoying and benefiting from proper ESM 👍 |
hey @oles thank you for reporting! could you give some simple repro steps or create a repro repository? I tried to replicate both of your cases, but both worked as expected (with node v11.10.1/macOS) |
Narrowed it down: package.json
index.js
Running With version 3.2.9 however - both work! |
import {_moduleAliases as alias} from './package.json'
Worked in 3.2.9 - but it seems like all json files are broken now:
import packageJSON from './package.json'
results in
SyntaxError: The requested module 'file:///<path>/package.json' does not provide an export named 'default'
The text was updated successfully, but these errors were encountered: