Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module not found: Can't resolve 'fs' in node_modules\arima\wasm #3

Open
SteffiKeranJ opened this issue Oct 17, 2020 · 6 comments
Open

Comments

@SteffiKeranJ
Copy link

Bug Report

On running node.js server in my Angular 8 application using yarn start locally am encountering :

ERROR in ./node_modules/arima/wasm/native.js
Module not found: Error: Can't resolve 'fs'in '..\node_modules\arima\wasm''

@zemlyansky
Copy link
Owner

Thanks for reporting that. How can I reproduce the error? Have you installed arima from npm or github?

@SteffiKeranJ
Copy link
Author

Hi @zemlyansky, I had used npm for installing arima package. It was npm install arima

@ghost
Copy link

ghost commented Mar 5, 2021

same issue

@zemlyansky
Copy link
Owner

@mprendki, @SteffiKeranJ I can't reproduce the issue, not locally not with RunKit: https://npm.runkit.com/arima
Are you using some bundler to load arima in the browser?

@kovart
Copy link

kovart commented May 1, 2022

Same issue with webpack 5

@kovart
Copy link

kovart commented May 1, 2022

Fixed by adding the following lines to webpack.config.js:

resolve: {
    extensions: ['.js', '.json', '.wasm'],
    fallback: {
      fs: false,
      path: require.resolve('path-browserify'),
    },
}

You also need to install path-browserify module with npm i -D path-browserify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants