We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
I'm trying to import the ES module version of the library in an Angular 15 project and I get the following error:
I see that there is an export in package.json but it doesn't seem to work.
Aditional info: I installed the dependency "js-quantities": "^1.8.0" and the devDependency @types/js-quantities": "^1.6.3"
"js-quantities": "^1.8.0"
@types/js-quantities": "^1.6.3"
The text was updated successfully, but these errors were encountered:
Hi. Could you try import Qty from 'js-quantities';?
import Qty from 'js-quantities';
Sorry, something went wrong.
Yes, that works but it doesn't use the ES module version right? Which is the one I'm trying to use
Same here!
To add more valuable context: using import Qty from 'js-quantities'; works fine but I get the following...obvious I guess!
Warning: /.../.service.ts depends on 'js-quantities'. CommonJS or AMD dependencies can cause optimization bailouts. For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies
No branches or pull requests
Hello,
I'm trying to import the ES module version of the library in an Angular 15 project and I get the following error:
I see that there is an export in package.json but it doesn't seem to work.
Aditional info: I installed the dependency
"js-quantities": "^1.8.0"
and the devDependency@types/js-quantities": "^1.6.3"
The text was updated successfully, but these errors were encountered: