We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have an error - Unable to resolve path to module 'unbuild'.
I encountered this error when trying to import the package 'unbuild', but it is normal to import other packages.
Could you please check it?
My files:
package.json
{ "name": "@plasticine-yang/eslint-config-basic-playground", "version": "0.0.0", "type": "module", "private": true, "packageManager": "pnpm@7.1.0", "author": "Plasticine-Yang", "license": "MIT", "devDependencies": { "@plasticine-yang/eslint-config-basic": "workspace:*", "unbuild": "^1.0.2" } }
.eslintrc.cjs
/** @type { import('eslint').ESLint.ConfigData } */ module.exports = { env: { es6: true, browser: true, node: true, }, extends: ['eslint:recommended', 'plugin:import/recommended'], settings: { 'import/resolver': { node: { extensions: ['.js', '.cjs', '.mjs'] }, }, }, }
The text was updated successfully, but these errors were encountered:
The issue here is that this package doesn't specify a "main", only "exports", which makes it not backwards-compatible.
This plugin uses resolve, which does not yet support exports, so it's not yet capable of resolving this package.
resolve
exports
Eventually, resolve will support it, but a better solution is for unbuild to support pre-exports nodes by supplying a "main".
unbuild
Sorry, something went wrong.
No branches or pull requests
I have an error - Unable to resolve path to module 'unbuild'.
I encountered this error when trying to import the package 'unbuild', but it is normal to import other packages.
Could you please check it?
My files:
package.json
.eslintrc.cjs
The text was updated successfully, but these errors were encountered: