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
@kiran8983 this is usually the kind of error when you try to run Node.js SDK in the browser or some where Node.js native libraries are not available, not super familiar with next.js but maybe this is related to way you are building your app?
Description/Screenshot
Module not found: Error: Can't resolve 'fs' in 'C:\digital-b2c-channel-web-app\node_modules\applicationinsights\out\Library'
Steps to Reproduce
Clone the project or navigate to the project directory.
Run the
yarn storybook build
command. which internally runs following:yarn add loader-utils --cmd-install && cross-env NODE_OPTIONS=--openssl-legacy-provider build-storybook -s ./public -o ./storybook-output
Observe the error mentioned above.
yarn storybook build
command.Expected behavior
I expected the
yarn storybook build
command to run successfully without any errors.Actual behavior
I encountered the error message mentioned above, and the build process failed.
Additional context
This error seems to be related to the
fs
module in theapplicationinsights
package. It appears to be blocking the build process.The text was updated successfully, but these errors were encountered: