dmdum
3 years agoNew Member
[ERR_PACKAGE_PATH_NOT_EXPORTED] when running ng e2e
Hello, trying to use cucumber with protractor in angular.
When running ng e2e --port 4201 I get an error:
E/launcher - Error: Error [ERR_PACKAGE_PATH_NOT_EXPORTED] [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './package.json' is not defined by "exports" in C:\Users\dndum\Documents\Projects\angular-project\node_modules@cucumber\cucumber\package.json
at throwExportsNotFound (internal/modules/esm/resolve.js:299:9)
at packageExportsResolve (internal/modules/esm/resolve.js:522:3)
at resolveExports (internal/modules/cjs/loader.js:424:36)
at Function.Module._findPath (internal/modules/cjs/loader.js:464:31)
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:802:27)
at Function.Module._load (internal/modules/cjs/loader.js:667:27)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at ModuleLoader.require (C:\Users\dndum\Documents\Projects\angular-project\node_modules@serenity-js\core\src\io\ModuleLoader.ts:68:20)
at ModuleLoader.versionOf (C:\Users\dndum\Documents\Projects\angular-project\node_modules@serenity-js\core\src\io\ModuleLoader.ts:80:33)
[11:27:45] E/launcher - Process exited with error code 100
An unexpected error occurred: undefined
Please advise on how to proceed.
Thank you!