You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
at new NodeError (node:internal/errors:387:5)
at throwExportsNotFound (node:internal/modules/esm/resolve:365:9)
at packageExportsResolve (node:internal/modules/esm/resolve:589:7)
at resolveExports (node:internal/modules/cjs/loader:556:36)
at Function.Module._findPath (node:internal/modules/cjs/loader:596:31)
at findModulePath (/myproject/node_modules/eslint-import-resolver-alias/index.js:99:27)
at Object.exports.resolve (/myproject/node_modules/eslint-import-resolver-alias/index.js:75:10)
at withResolver (/myproject/node_modules/eslint-module-utils/resolve.js:180:23)
at fullResolve (/myproject/node_modules/eslint-module-utils/resolve.js:201:22)
at relative (/myproject/node_modules/eslint-module-utils/resolve.js:217:10) import/no-unresolved
1:1 error Resolve error: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: No "exports" main defined in /myproject/node_modules/@splinetool/react-spline/package.json
I can fix it locally adding default field into exports inside your package.json:
I'm using your library like this
and my eslint generates the following error
I can fix it locally adding
default
field intoexports
inside your package.json:Unfortunately, it is not a good way to fix it in our common repository.
I cannot find a way to skip it for eslint and looks like it can be fixed on your side changing package.json.
Please help me to solve this issue
The text was updated successfully, but these errors were encountered: