Message Boards
Errors Using npm bundler -- need help
Michael Freeman, modified 4 Years ago.
Errors Using npm bundler -- need help
Junior Member Posts: 37 Join Date: 7/2/12 Recent Posts
So I am seeing the following errors in the bundler report file:
I know this is happening because the formidable package includes some "true" node stuff like fs, os, path etc. Can someone tell me how to configure my .npmbundlerrc to suppress these errors? I have tried a variety of different things including as my most recent attempt :
"ignore": [
"formidable/*.*"
],
I know this is happening because the formidable package includes some "true" node stuff like fs, os, path etc. Can someone tell me how to configure my .npmbundlerrc to suppress these errors? I have tried a variety of different things including as my most recent attempt :
"ignore": [
"formidable/*.*"
],
Attachments:
Ivan Zaera, modified 4 Years ago.
RE: Errors Using npm bundler -- need help
Regular Member Posts: 119 Join Date: 10/1/13 Recent Posts
You should use "exclude" (see https://github.com/liferay/liferay-js-toolkit/wiki/.npmbundlerrc-file-reference#exclude)
The "ignore" setting is for your project's files only.
Cheers,
Ivan
The "ignore" setting is for your project's files only.
Cheers,
Ivan