juanelas / pbkdf2-hmac Goto Github PK
View Code? Open in Web Editor NEWPBKDF2 following RFC 2898 using HMAC (with SHA-1, SHA-256, SHA-384, SHA-512) as the PRF
License: MIT License
PBKDF2 following RFC 2898 using HMAC (with SHA-1, SHA-256, SHA-384, SHA-512) as the PRF
License: MIT License
After upgrading the pbkdf2-hmac library from version 1.1.0 to 1.2.0, I started encountering Angular compilation errors that seem unrelated to the library itself. The error messages are cryptic and do not point to a specific issue in the Angular application.
ERROR in ./src/app/pages/login/login.page.ts 15:0-37
Module not found: Error: Default condition should be last one
ModuleNotFoundError: Module not found: Error: Default condition should be last one
The line to which the error points is a blank line.
These errors occur in several components and seem to be related to the imports. The error message "Default condition should be last one" is not a standard Angular error and might be related to a custom loader or plugin used in the project.
The issue appears only when the pbkdf2-hmac library is updated to version 1.2.0. Reverting to version 1.1.0 resolves the compilation errors.
Steps to reproduce:
Upgrade the pbkdf2-hmac library to version 1.2.0 in an Angular project.
Run ng build or ng serve.
Expected behavior:
The Angular application should compile without any errors related to the pbkdf2-hmac library update.
Actual behavior:
The Angular application fails to compile, throwing cryptic error messages related to imports in several components.
Environment:
Angular version: 15.2.4
Node.js version: 19.9.0
npm version: 9.6.3
pbkdf2-hmac version: 1.2.0
Operating System: Windows 11
I would appreciate any help in resolving this issue or understanding why the library update causes these errors.
Your package offers a neat & clean abstraction for generating pbkdf2 for universal code - a clever way of solving this problem at build-time, via IS_BROWSER
๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.