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 '@libsql/linux-arm64-gnu #508

Open
cellistV opened this issue Feb 25, 2025 · 2 comments
Open

更新后报错Error: Cannot find module '@libsql/linux-arm64-gnu #508

cellistV opened this issue Feb 25, 2025 · 2 comments
Labels
bug Something isn't working released

Comments

@cellistV
Copy link

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

更新docker镜像后(0.41.8)出现bug
“Unexpected token '<', "<!DOCTYPE "... is not valid JSON”

Image

容器日志:No pending migrations to apply.
✨ Seed done! ✨
▲ Next.js 15.1.7

✓ Starting...
✓ Ready in 6.3s
[] followsxxx
[next-auth][warn][NEXTAUTH_URL]
https://next-auth.js.org/warnings#nextauth_url
✨ Seed done! ✨
⨯ [Error: Cannot find module '@libsql/linux-arm64-gnu'
Require stack:

  • /app/node_modules/.pnpm/[email protected]/node_modules/libsql/index.js] {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array]
    }
    ⨯ [Error: Cannot find module '@libsql/linux-arm64-gnu'
    Require stack:
  • /app/node_modules/.pnpm/[email protected]/node_modules/libsql/index.js] {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array]
    }
    ⨯ [Error: Cannot find module '@libsql/linux-arm64-gnu'
    Require stack:
  • /app/node_modules/.pnpm/[email protected]/node_modules/libsql/index.js] {
    code: 'MODULE_NOT_FOUND',
    requireStack: [Array]
    }
Copy link

dosubot bot commented Feb 25, 2025

Hey @cellistV! 👋 I'm here to help you with any bugs, questions, or contributions you have. I'm a bot that's eager to assist you while we wait for a human maintainer.

The error "Cannot find module '@libsql/linux-arm64-gnu'" suggests that the module is missing or not installed correctly. This could be due to a few reasons:

  1. Architecture Mismatch: Ensure that the Docker image you are using is compatible with your system's architecture. Blinko's Docker setup supports multi-platform images, including linux/arm64, so make sure you are using the correct image for your architecture [1].

  2. Module Installation: Verify that the module @libsql/linux-arm64-gnu is correctly listed in your package.json and that it is installed. You might need to run npm install or pnpm install to ensure all dependencies are installed.

  3. Docker Image Update: If the issue started after updating the Docker image, there might be a problem with the new image version. Consider rolling back to a previous version that worked or checking the release notes for any changes related to module dependencies.

Regarding the "Unexpected token '<', '<!DOCTYPE '... is not valid JSON" error, this typically occurs when an HTML response is received instead of JSON. This can happen if:

  • The NEXTAUTH_URL is not set correctly, leading to incorrect API endpoint calls. Ensure that NEXTAUTH_URL is configured to the correct URL where your application is running [2].
  • There might be a misconfiguration in your environment variables or a network issue causing the wrong response type.

Double-check your environment configurations and ensure all URLs and paths are correct.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot dosubot bot added bug Something isn't working released labels Feb 25, 2025
@cellistV
Copy link
Author

Hey @cellistV! 👋 I'm here to help you with any bugs, questions, or contributions you have. I'm a bot that's eager to assist you while we wait for a human maintainer.

The error "Cannot find module '@libsql/linux-arm64-gnu'" suggests that the module is missing or not installed correctly. This could be due to a few reasons:

  1. Architecture Mismatch: Ensure that the Docker image you are using is compatible with your system's architecture. Blinko's Docker setup supports multi-platform images, including linux/arm64, so make sure you are using the correct image for your architecture [1].
  2. Module Installation: Verify that the module @libsql/linux-arm64-gnu is correctly listed in your package.json and that it is installed. You might need to run npm install or pnpm install to ensure all dependencies are installed.
  3. Docker Image Update: If the issue started after updating the Docker image, there might be a problem with the new image version. Consider rolling back to a previous version that worked or checking the release notes for any changes related to module dependencies.

Regarding the "Unexpected token '<', '<!DOCTYPE '... is not valid JSON" error, this typically occurs when an HTML response is received instead of JSON. This can happen if:

  • The NEXTAUTH_URL is not set correctly, leading to incorrect API endpoint calls. Ensure that NEXTAUTH_URL is configured to the correct URL where your application is running [2].
  • There might be a misconfiguration in your environment variables or a network issue causing the wrong response type.

Double-check your environment configurations and ensure all URLs and paths are correct.

To continue talking to Dosu, mention @dosu.

Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

I rolling back 0.40.5,It's worked

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

No branches or pull requests

1 participant