-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
[ERR_PACKAGE_PATH_NOT_EXPORTED] when running ng e2e #1869
Comments
Hi, Thank you for your report. With v8.0.0-rc.1 and the ESM support, indeed package.json is not exported anymore. I will take a look on that to see if we can add it to the exports. This is actually related to that: #1853 |
Hello, Thank you for responding. |
@dmdum would you have the possibility to test with the following branch: #1870? You should be able to do that with the following:
Important: do not use that branch in production. This is just for testing purpose! 😅 |
I might be able to after work hours. I'll post here whatever I find. |
Hey :) Indeed, the branch has been merged on main. |
Yes Sorry for that 😓 |
Oh, no worries. Btw, I'm actually still learning cucumber and I was wondering if I can use it on Angular alone without Protractor. Would that be possible? I've been looking for a setup guide on how to do that but Cucumber always seems to be paired with something... |
Actually I don't know Angular or Protractor. But maybe Angular itself requires Protractor? |
Hmmm, yeah maybe that's it, thanks. |
Protractor is (or was when I last used it) essentially a wrapper around WebDriver that had special handling for Angular's event loop etc. You could definitely test an Angular app with Cucumber paired with WebDriver, Puppeteer or Playwright. There's an example here with Puppeteer (not an endorsement of that over any of the other options, just something I've used). |
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!
The text was updated successfully, but these errors were encountered: