Skip to content
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

Unable to build Angular project with Jose #549

Closed
2 tasks done
JoinThisBand opened this issue Jul 6, 2023 · 1 comment
Closed
2 tasks done

Unable to build Angular project with Jose #549

JoinThisBand opened this issue Jul 6, 2023 · 1 comment
Labels
external An issue that's caused by an external factor, not this module.

Comments

@JoinThisBand
Copy link

What happened?

Angular was impacted by an issue with Babel today, which was resolved by a rollback by the Babel team.

Though I know jose is not dependant on Babel, I'm seeing new errors when trying to build my project, which seem to be related:

./node_modules/jose/dist/browser/lib/decrypt_key_management.js:14:22 - Error: Module parse failed: Unexpected token (14:22)
File was processed with these loaders:
 * ./node_modules/@angular-devkit/build-angular/src/tools/babel/webpack-loader.js
 * ./node_modules/source-map-loader/dist/cjs.js
You may need an additional loader to handle the result of these loaders.
| import isObject from './is_object.js';
| import { unwrap as aesGcmKw } from './aesgcmkw.js';
> /*#__PURE__*/function () {
|   _temp = function () {
|     function decryptKeyManagement(_x, _x2, _x3, _x4, _x5) {

There are similar error messages for:

  • ./node_modules/jose/dist/browser/lib/encrypt_key_management.js
  • ./node_modules/jose/dist/browser/runtime/decrypt.js
  • ./node_modules/jose/dist/browser/runtime/encrypt.js

Any guidance to resolve this issue would be helpful.

Version

4.14.4

Runtime

Node.js

Runtime Details

v18.12.1 on Mac

Code to reproduce

Add Jose to an Angular project and run `ng serve`.

Required

  • I have searched the issues tracker and discussions for similar topics and couldn't find anything related.
  • I agree to follow this project's Code of Conduct
@panva
Copy link
Owner

panva commented Jul 6, 2023

There is very little I can do about other project's bundling mechanisms.

@panva panva closed this as not planned Won't fix, can't repro, duplicate, stale Jul 6, 2023
@panva panva added external An issue that's caused by an external factor, not this module. and removed triage labels Jul 6, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Oct 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
external An issue that's caused by an external factor, not this module.
Projects
None yet
Development

No branches or pull requests

2 participants