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

gatsby production build throwing yoga-layout-prebuilt module error #25166

Closed
10-seconds opened this issue Jun 21, 2020 · 2 comments
Closed

gatsby production build throwing yoga-layout-prebuilt module error #25166

10-seconds opened this issue Jun 21, 2020 · 2 comments
Assignees
Labels
topic: cli Related to the Gatsby CLI type: bug An issue or pull request relating to a bug in Gatsby

Comments

@10-seconds
Copy link

gatsby production build throwing below error

$ gatsby build
11:55:23 AM: /opt/build/repo/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
11:55:23 AM:         throw ex;
11:55:23 AM:         ^
11:55:23 AM: Error: Cannot find module 'acorn'
11:55:23 AM: Require stack:
11:55:23 AM: - /opt/build/repo/node_modules/acorn-jsx/index.js
11:55:23 AM: - /opt/build/repo/node_modules/buble-jsx-only/dist/buble.cjs.js

Steps to reproduce

Goto https://github.com/10secondsofcode/10secondsofcode.git and Pull the code into local.
npm install and npm run build

Expected result

Built will be success without any error.

Actual result

Now throwing error as

$ gatsby build
11:55:23 AM: /opt/build/repo/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
11:55:23 AM:         throw ex;
11:55:23 AM:         ^
11:55:23 AM: Error: Cannot find module 'acorn'
11:55:23 AM: Require stack:
11:55:23 AM: - /opt/build/repo/node_modules/acorn-jsx/index.js
11:55:23 AM: - /opt/build/repo/node_modules/buble-jsx-only/dist/buble.cjs.js

Environment

$ gatsby info --clipboard

  System:
    OS: Windows 8.1
    CPU: (4) x64 Intel(R) Core(TM) i3-5010U CPU @ 2.10GHz
  Binaries:
    npm: 6.13.1 - C:\Program Files\nodejs\npm.CMD
  npmPackages:
    gatsby: ^2.23.0 => 2.23.7
    gatsby-plugin-feed: ^2.0.8 => 2.5.5
    gatsby-plugin-google-analytics: ^2.0.5 => 2.3.4
    gatsby-plugin-manifest: ^2.0.5 => 2.4.12
    gatsby-plugin-offline: ^3.0.30 => 3.2.11
    gatsby-plugin-react-helmet: ^3.0.0 => 3.3.4
    gatsby-plugin-sharp: ^2.0.16 => 2.6.12
    gatsby-plugin-sitemap: ^2.0.4 => 2.4.5
    gatsby-plugin-typography: ^2.2.0 => 2.5.4
    gatsby-remark-autolink-headers: ^2.0.12 => 2.3.5
    gatsby-remark-copy-linked-files: ^2.0.5 => 2.3.5
    gatsby-remark-images: ^3.1.39 => 3.3.11
    gatsby-remark-prismjs: ^3.0.0 => 3.5.4
    gatsby-remark-responsive-iframe: ^2.0.5 => 2.4.5
    gatsby-remark-smartypants: ^2.0.5 => 2.3.4
    gatsby-source-filesystem: ^2.0.12 => 2.3.12
    gatsby-transformer-remark: ^2.1.17 => 2.8.17
    gatsby-transformer-sharp: ^2.1.9 => 2.5.5

Thanks

@10-seconds 10-seconds added the type: bug An issue or pull request relating to a bug in Gatsby label Jun 21, 2020
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jun 21, 2020
@freiksenet freiksenet added topic: cli Related to the Gatsby CLI and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Jun 22, 2020
@LekoArts
Copy link
Contributor

Hi, thanks for the issue!

I cloned your repository and was able to build it without problems. Your issue is one of a couple issues that were already opened about this topic (https://github.com/gatsbyjs/gatsby/issues?q=is%3Aissue+sort%3Aupdated-desc+yoga-layout-prebuilt+is%3Aopen) and to keep things organized I'll close this as a duplicate of #24577 for now. Please comment on that issue. Thanks!

@10-seconds
Copy link
Author

@LekoArts Thanks..!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: cli Related to the Gatsby CLI type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

No branches or pull requests

3 participants