-
Notifications
You must be signed in to change notification settings - Fork 37
module not found #64
Comments
Hi @kishor-dabi, Can you give more informations about your usage ? |
@Gmousse but it give warning at compile time and build time WARNING in ./node_modules/dataframe-js/lib/reusables.js The version of datafrane-js and other is: |
I have the same warning while compile. I do not write file at all. |
hi @maihannijat, Thank you |
Steps taken: Result:
Confirmation: |
Ok strange... I will continue to look for a solution . |
After looking a bit, it s related to webpack (or similar) which resolves the require fs at build time and fails even if the require has a try catch block. Can you try to add: In your webpack config:
Or if you can t, in your package.json:
If it works I will see if I can add it in the library s package.json. |
Tried the following and it did not help:
|
Ok. Can you give me your webpack, node versions, and your webpack config (if possible) to reproduce this error. Indeed, on my side I can build with rollup or webpack without errors. |
Node version: v10.9.0 You will get the error if you clone and add the package there. |
After a quick investigation, it seems its related to angular: angular/angular-cli#10681 Indeed, the require is clearly try catched in dataframe-js and should work anyway. It's related to how angular build its bundle. It seems adding
in the library package.json resolves your issue (I have no longer warning with your repository). |
The error is gone with above instructions but it broke my project. I get the following error in the browser console and the project does not load:
I removed the package and installed the stable version and the project is running but with same warning. |
Sorry ! js environment can be a torment sometimes. I will continue to work on it. Stay tuned. @maihannijat it's a bit strange. I have cloned your repo, use my upgrade-babel branch and it seems to work (without displaying the warning anymore). I don't understand. |
Hi @maihannijat My feature was merged with the develop branch. It works with your project (without the warning). I will close the issue after the release 1.4.0 (in a week). |
Any ETA on when 1.4.0 will be released with this fix? |
Hi ! I will try to work on the library to release the 1.4.0 asap. This week I hope. |
@bluehazetech I m working to deliver the 1.4.0 as soon as possible. Feel free to test the develop branch via #72 |
when using dataframe-js it give warning:
WARNING in ./node_modules/dataframe-js/lib/reusables.js
Module not found: Error: Can't resolve 'fs' in '/home/kishoredabi/Desktop/inv_master/core-web-inventory/core-web/node_modules/dataframe-js/lib'
The text was updated successfully, but these errors were encountered: