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
{{ message }}
This repository has been archived by the owner on May 30, 2024. It is now read-only.
When I tested LD in a dummy repo it ran perfectly fine. I've now included it in our product but webpack will not compile it with many package errors - for example:
ERROR in ../node_modules/ldclient-node/file_data_source.js
Module not found: Error: Can't resolve 'fs' in '/Users/me/Repos/fluidly-web/node_modules/ldclient-node'
The proper course is the ask the module author to make the module browser compatible.
The author can add `browser: { fs: false, child_process: false }` to the `package.json` to tell webpack that it's ok for the module to get an empty object for these modules.
The text was updated successfully, but these errors were encountered:
Ok, I'm not sure I wasn't questioning why my webpack was even trying to compile the node version. I've found the reason why and it's fixed. Sorry to cause alarm. Can close the issue.
When I tested LD in a dummy repo it ran perfectly fine. I've now included it in our product but webpack will not compile it with many package errors - for example:
There are some ideas how to sort this here:
webpack/webpack#744
Specifically:
The text was updated successfully, but these errors were encountered: