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

{Bug} npm run build not work #44

Open
lolminerxmrig opened this issue Aug 6, 2023 · 1 comment
Open

{Bug} npm run build not work #44

lolminerxmrig opened this issue Aug 6, 2023 · 1 comment

Comments

@lolminerxmrig
Copy link

hi.
plz help me for fixed Error:

[ssdasdassfdafd@host wo]$ npm run build

wo@0.1.0 build
PUBLIC_URL=/wp-content/reactpress/apps/wo/build react-scripts build

Creating an optimized production build...
/home/ssdasdassfdafd/public_html/wo.ssdasdassfdafd.com/wp-content/reactpress/apps/wo/node_modules/react-scripts/scripts/build.js:19
throw err;
^

RangeError: WebAssembly.Instance(): Out of memory: wasm memory
at create (/home/ssdasdassfdafd/public_html/wo.ssdasdassfdafd.com/wp-content/reactpress/apps/wo/node_modules/webpack/lib/util/hash/wasm-hash.js:154:4)
at module.exports (/home/ssdasdassfdafd/public_html/wo.ssdasdassfdafd.com/wp-content/reactpress/apps/wo/node_modules/webpack/lib/util/createHash.js:176:6)
at /home/ssdasdassfdafd/public_html/wo.ssdasdassfdafd.com/wp-content/reactpress/apps/wo/node_modules/webpack/lib/DefinePlugin.js:341:22
at Hook.eval [as call] (eval at create (/home/ssdasdassfdafd/public_html/wo.ssdasdassfdafd.com/wp-content/reactpress/apps/wo/node_modules/tapable/lib/HookCodeFactory.js:1:1), :104:1)
at Hook.CALL_DELEGATE [as _call] (/home/ssdasdassfdafd/public_html/wo.ssdasdassfdafd.com/wp-content/reactpress/apps/wo/node_modules/tapable/lib/Hook.js:14:14)
at Compiler.newCompilation (/home/ssdasdassfdafd/public_html/wo.ssdasdassfdafd.com/wp-content/reactpress/apps/wo/node_modules/webpack/lib/Compiler.js:1126:26)
at /home/ssdasdassfdafd/public_html/wo.ssdasdassfdafd.com/wp-content/reactpress/apps/wo/node_modules/webpack/lib/Compiler.js:1170:29
at Hook.eval [as callAsync] (eval at create (/home/ssdasdassfdafd/public_html/wo.ssdasdassfdafd.com/wp-content/reactpress/apps/wo/node_modules/tapable/lib/HookCodeFactory.js:1:1), :6:1)
at Hook.CALL_ASYNC_DELEGATE [as _callAsync] (/home/ssdasdassfdafd/public_html/wo.ssdasdassfdafd.com/wp-content/reactpress/apps/wo/node_modules/tapable/lib/Hook.js:18:14)
at Compiler.compile (/home/ssdasdassfdafd/public_html/wo.ssdasdassfdafd.com/wp-content/reactpress/apps/wo/node_modules/webpack/lib/Compiler.js:1165:28)

Node.js v18.17.0

@rockiger
Copy link
Owner

rockiger commented Aug 7, 2023

This looks like a problem with a node package of your app. I don't see any connection to with ReactPress. Try to remove

PUBLIC_URL=/wp-content/reactpress/apps/wo/build 

in your package.json. Does it build then?

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

2 participants