gatsby
gatsby copied to clipboard
yoga-layout-prebuilt error on FreeBSD
Preliminary Checks
- [X] This issue is not a duplicate. Before opening a new issue, please search existing issues: https://github.com/gatsbyjs/gatsby/issues
- [X] This issue is not a question, feature request, RFC, or anything other than a bug report directly related to Gatsby. Please post those things in GitHub Discussions: https://github.com/gatsbyjs/gatsby/discussions
Description
Hello, I installed Gatsby-minimal-starter as per the instructions. However when I do 'npm run develop' I get the following error:
...bug-repo/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
throw ex;
^
Error: Cannot find module './artifacts/index.freebsd-x64.node'
Note that Gatsby installs without any errors.
Any help will be appreciated.
Regards, John.
Reproduction Link
https://github.com/jboyd79/bug-repo
Steps to Reproduce
- npm init gatsby
- cd bug-repo
- npm run develop ...
Expected Result
Expected Gatsby site to be running at http://localhost:8000
Actual Result
Got the following instead:
$ cd bug-repo
$ npm run develop
> [email protected] develop
> gatsby develop
/home/settler/bug-repo/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
throw ex;
^
Error: Cannot find module './artifacts/index.freebsd-x64.node'
Require stack:
- /home/settler/bug-repo/node_modules/@parcel/source-map/parcel_sourcemap_node/index.js
- /home/settler/bug-repo/node_modules/@parcel/source-map/dist/node.js
- /home/settler/bug-repo/node_modules/@parcel/utils/lib/index.js
- /home/settler/bug-repo/node_modules/@parcel/core/lib/public/Config.js
- /home/settler/bug-repo/node_modules/@parcel/core/lib/utils.js
- /home/settler/bug-repo/node_modules/@parcel/core/lib/public/Environment.js
- /home/settler/bug-repo/node_modules/@parcel/core/lib/public/Asset.js
- /home/settler/bug-repo/node_modules/@parcel/core/lib/Parcel.js
- /home/settler/bug-repo/node_modules/@parcel/core/lib/index.js
- /home/settler/bug-repo/node_modules/gatsby/dist/utils/parcel/compile-gatsby-files.js
- /home/settler/bug-repo/node_modules/gatsby/dist/bootstrap/get-config-file.js
- /home/settler/bug-repo/node_modules/gatsby/dist/bootstrap/load-config/index.js
- /home/settler/bug-repo/node_modules/gatsby/dist/services/initialize.js
- /home/settler/bug-repo/node_modules/gatsby/dist/services/index.js
- /home/settler/bug-repo/node_modules/gatsby/dist/state-machines/develop/services.js
- /home/settler/bug-repo/node_modules/gatsby/dist/state-machines/develop/index.js
- /home/settler/bug-repo/node_modules/gatsby/dist/commands/develop-process.js
- /home/settler/bug-repo/.cache/tmp-27117-jVSuU3O916Nw
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
at Function.Module._load (node:internal/modules/cjs/loader:804:27)
at Module.require (node:internal/modules/cjs/loader:1022:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/home/settler/bug-repo/node_modules/@parcel/source-map/parcel_sourcemap_node/index.js:15:18)
at Module._compile (node:internal/modules/cjs/loader:1120:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1174:10)
at Module.load (node:internal/modules/cjs/loader:998:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12)
at Module.require (node:internal/modules/cjs/loader:1022:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/home/settler/bug-repo/node_modules/@parcel/source-map/dist/node.js:14:18)
at Module._compile (node:internal/modules/cjs/loader:1120:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1174:10)
at Module.load (node:internal/modules/cjs/loader:998:32)
at Function.Module._load (node:internal/modules/cjs/loader:839:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/settler/bug-repo/node_modules/@parcel/source-map/parcel_sourcemap_node/index.js',
'/home/settler/bug-repo/node_modules/@parcel/source-map/dist/node.js',
'/home/settler/bug-repo/node_modules/@parcel/utils/lib/index.js',
'/home/settler/bug-repo/node_modules/@parcel/core/lib/public/Config.js',
'/home/settler/bug-repo/node_modules/@parcel/core/lib/utils.js',
'/home/settler/bug-repo/node_modules/@parcel/core/lib/public/Environment.js',
'/home/settler/bug-repo/node_modules/@parcel/core/lib/public/Asset.js',
'/home/settler/bug-repo/node_modules/@parcel/core/lib/Parcel.js',
'/home/settler/bug-repo/node_modules/@parcel/core/lib/index.js',
'/home/settler/bug-repo/node_modules/gatsby/dist/utils/parcel/compile-gatsby-files.js',
'/home/settler/bug-repo/node_modules/gatsby/dist/bootstrap/get-config-file.js',
'/home/settler/bug-repo/node_modules/gatsby/dist/bootstrap/load-config/index.js',
'/home/settler/bug-repo/node_modules/gatsby/dist/services/initialize.js',
'/home/settler/bug-repo/node_modules/gatsby/dist/services/index.js',
'/home/settler/bug-repo/node_modules/gatsby/dist/state-machines/develop/services.js',
'/home/settler/bug-repo/node_modules/gatsby/dist/state-machines/develop/index.js',
'/home/settler/bug-repo/node_modules/gatsby/dist/commands/develop-process.js',
'/home/settler/bug-repo/.cache/tmp-27117-jVSuU3O916Nw'
]
}
Node.js v18.7.0
Environment
System:
OS: freebsd
CPU: (2) x64 Intel(R) Pentium(R) CPU 2127U @ 1.90GHz
Binaries:
Node: 18.7.0 - /usr/local/bin/node
Yarn: 1.22.18 - /usr/local/bin/yarn
npm: 8.19.1 - /usr/local/bin/npm
npmPackages:
gatsby: ^4.23.1 => 4.23.1
npmGlobalPackages:
gatsby-cli: 4.23.1
Config Flags
No response
Hi @jboyd79, sorry you ran into this issue. It appears to be a known issue that certain Parcel modules (which are dependencies of Gatsby) do not ship FreeBSD compatible binaries, see https://github.com/parcel-bundler/parcel/issues/5812#issuecomment-1082935518.
From the stack trace you provided the issue comes from @parcel/source-map
, which is one of the modules they mention.
I'll leave this open, but for the time being the best place to track progress on this is in https://github.com/parcel-bundler/parcel/issues/5812.
Hello @tyhopp,
Thanks very much for checking into this for me. I can only hope that the parcel people work it out..
John.
Hiya!
This issue has gone quiet. Spooky quiet. π»
We get a lot of issues, so we currently close issues after 60 days of inactivity. Itβs been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! πͺπ
Hello,
I would much appreciate if you can keep the issue open....for now.
Regards, John.
On Tue, Oct 18, 2022 at 8:02 AM github-actions[bot] < @.***> wrote:
Hiya!
This issue has gone quiet. Spooky quiet. π»
We get a lot of issues, so we currently close issues after 60 days of inactivity. Itβs been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Check out gatsby.dev/contribute https://www.gatsbyjs.com/contributing#how-to-contribute for more information about opening PRs, triaging issues, and contributing!
Thanks for being a part of the Gatsby community! πͺπ
β Reply to this email directly, view it on GitHub https://github.com/gatsbyjs/gatsby/issues/36696#issuecomment-1282275618, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACRGQEEVXSDNQX7IM4VWDULWD2GWVANCNFSM6AAAAAAQWF3VMQ . You are receiving this because you were mentioned.Message ID: @.***>
This issue is urgent for us since our build machines use FreeBSD.
Please track progress on this in https://github.com/parcel-bundler/parcel/issues/5812 as sadly we can't do anything about it.