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: Error: Can't resolve 'yoga-layout/sync' in '../node_modules/@react-pdf/layout/lib' #2501

Closed
ThaiDQ-FE opened this issue Jan 17, 2024 · 2 comments

Comments

@ThaiDQ-FE
Copy link

Hi guys.
I'm using node version: 14.17.3
Yesterday while I deploy source code and get error in aws ec2 like this:
�[1m�[31mERROR in ./node_modules/@react-pdf/layout/lib/index.cjs.js
Module not found: Error: Can't resolve 'yoga-layout/sync' in '../node_modules/@react-pdf/layout/lib'
@ ./node_modules/@react-pdf/layout/lib/index.cjs.js 16:11-38
@ ./node_modules/@react-pdf/renderer/lib/react-pdf.browser.cjs.js
@ ./app/containers/Report/ListDriving/ListDriving.js
@ ./app/containers/Report/index.js
@ ./app/containers/Report/Loadable.js
@ ./app/routes/index.js
@ ./app/routes/mainRoutes.js
@ ./app/layouts/MainPage.js
@ ./app/app.js
@ multi ./node_modules/react-app-polyfill/ie11.js ./app/app.js�[39m�[22m
Child �[1mhtml-webpack-plugin for "index.html"�[39m�[22m:
1 asset
Entrypoint �[1mundefined�[39m�[22m = �[1m�[32mindex.html�[39m�[22m
error Command failed with exit code 2.

in the past, it completely succeeded.

@diegomura
Copy link
Owner

Duplicated: #2499

@muikku
Copy link

muikku commented Jan 17, 2024

We are also having this issue.

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