open-cli-tools / concurrently

Run commands concurrently. Like `npm run watch-js & npm run watch-less` but better.
https://www.npmjs.com/package/concurrently
MIT License
7k stars 228 forks source link

Getting ERR_PACKAGE_PATH_NOT_EXPORTED #425

Closed andyndang closed 11 months ago

andyndang commented 1 year ago

I'm getting this error with concurrently 8.1.0

Have to add this line to the package.json to make it work:

image

[0] Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './dist/src/defaults' is not defined by "exports" in /Volumes/Workspace/project/node_modules/concurrently/package.json
[0]     at new NodeError (node:internal/errors:399:5)
[0]     at exportsNotFound (node:internal/modules/esm/resolve:266:10)
[0]     at packageExportsResolve (node:internal/modules/esm/resolve:602:9)
[0]     at resolveExports (node:internal/modules/cjs/loader:579:36)
[0]     at Function.Module._findPath (node:internal/modules/cjs/loader:648:31)
[0]     at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1076:27)
[0]     at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/Volumes/Workspace/project/node_modules/@cspotcode/source-map-support/source-map-support.js:679:30)
[0]     at Function.Module._load (node:internal/modules/cjs/loader:934:27)
[0]     at Module.require (node:internal/modules/cjs/loader:1157:19)
[0]     at require (node:internal/modules/helpers:119:18) {
[0]   code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
gustavohenke commented 1 year ago

How are you consuming concurrently? Did this happen before v8.1.0?

gustavohenke commented 11 months ago

Closing for now. If anyone sees this issue again, please add more details.