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

Error: Cannot find module 'lmdb-store' #291

Closed
t2ca opened this issue Feb 22, 2022 · 5 comments · Fixed by #292
Closed

Error: Cannot find module 'lmdb-store' #291

t2ca opened this issue Feb 22, 2022 · 5 comments · Fixed by #292
Labels
bug Something isn't working

Comments

@t2ca
Copy link

t2ca commented Feb 22, 2022

I'm getting this error with the Gatsby 4.8.0

Gatsby 4.8.0 has upgrade from lmdb-store to lmdb

Error: Cannot find module 'lmdb-store'
Require stack:
- /opt/build/repo/.netlify/plugins/node_modules/@netlify/plugin-gatsby/lib/helpers/files.js
- /opt/build/repo/.netlify/plugins/node_modules/@netlify/plugin-gatsby/lib/index.js
@t2ca t2ca added the bug Something isn't working label Feb 22, 2022
@ascorbic
Copy link
Contributor

Hi. Can you confirm that this is just a log, and that the build still completes? We should be handling this here (though I should hide the error message).

@t2ca
Copy link
Author

t2ca commented Feb 23, 2022

Yes the site does build however SSR stopped working and I thought maybe this was related.

Now, I'm getting this message when I visit a page with SSR.

{
"errorType": "Error",
"errorMessage": "Module did not self-register: '/var/task/.cache/query-engine/assets/prebuilds/linux-x64/node.abi93.glibc.node'.",
"trace": [
"Error: Module did not self-register: '/var/task/.cache/query-engine/assets/prebuilds/linux-x64/node.abi93.glibc.node'.",
"    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1144:18)",
"    at Module.load (internal/modules/cjs/loader.js:950:32)",
"    at Function.Module._load (internal/modules/cjs/loader.js:790:12)",
"    at Module.require (internal/modules/cjs/loader.js:974:19)",
"    at require (internal/modules/cjs/helpers.js:93:18)",
"    at Object.exports.__esModule (/var/task/.cache/query-engine/index.js:146728:18)",
"    at __webpack_require__ (/var/task/.cache/query-engine/index.js:682628:42)",
"    at Object.<anonymous> (/var/task/.cache/query-engine/index.js:146682:20)",
"    at __webpack_require__ (/var/task/.cache/query-engine/index.js:682628:42)",
"    at Object.defineProperty.value (/var/task/.cache/query-engine/index.js:144176:13)"
]
}

It was working before upgrading Gatsby to v4.8 and it works locally.

@ascorbic
Copy link
Contributor

Is this deployed from your local machine, or via Netlify CI?

@t2ca
Copy link
Author

t2ca commented Feb 23, 2022

Netlify

https://www.t2.ca/test-ssr/

@ascorbic
Copy link
Contributor

Thanks. I'm going to move this to a new issue, as it seems to be unrelated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants