You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a very hard time trying to make my little project work with karma-commonjs not because of this plugin directly but because some of the dependencies I'm using.
Some of them do not declare a main attribute, which is the one karma-commonjs uses to load the right files from the package.json for every dependency.
These are the dependencies and how they declare its main file in their package.json file:
The way I solved this issue was to create a post-install script in my project which adds the main atribute to the package.json file for each one of these dependencies, but I'm not very proud fo this workaround.
I would like to know what would be the right solution to be able to use these kind of dependencies.
Thanks a lot.
The text was updated successfully, but these errors were encountered:
Hi there!
I had a very hard time trying to make my little project work with karma-commonjs not because of this plugin directly but because some of the dependencies I'm using.
Some of them do not declare a main attribute, which is the one karma-commonjs uses to load the right files from the package.json for every dependency.
These are the dependencies and how they declare its main file in their package.json file:
The way I solved this issue was to create a post-install script in my project which adds the main atribute to the package.json file for each one of these dependencies, but I'm not very proud fo this workaround.
I would like to know what would be the right solution to be able to use these kind of dependencies.
Thanks a lot.
The text was updated successfully, but these errors were encountered: