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

don't work in standalone mode #1773

Open
3 tasks done
zavalit opened this issue Mar 10, 2025 · 2 comments
Open
3 tasks done

don't work in standalone mode #1773

zavalit opened this issue Mar 10, 2025 · 2 comments
Labels
bug Something isn't working reproduction-missing unconfirmed Needs triage.

Comments

@zavalit
Copy link

zavalit commented Mar 10, 2025

Description

next version: 15.2.1

next.config.js:

const createNextIntlPlugin = require('next-intl/plugin')
const path = require('path')

const withNextIntl = createNextIntlPlugin()

/** @type {import('next').NextConfig} */
const nextConfig = {
  output: 'standalone'
  
}

module.exports = withNextIntl(nextConfig)

next-intl version: 3.26.3

if i build and run:

yarn build && node .next/standalone/server.js

it fails to load any assets (css, js):

 ⨯ Error: Cannot find module './null.json'
    at <unknown> (.next/server/chunks/214.js:1:44498)
    at async (.next/server/chunks/214.js:1:4323)
    at async (.next/server/chunks/743.js:5:57681)
    at async (.next/server/chunks/743.js:5:58433)
    at async (.next/server/chunks/743.js:3:87161)
    at async u (.next/server/chunks/214.js:1:10112) {
  code: 'MODULE_NOT_FOUND',
  digest: '1746925691'
}

Verifications

Mandatory reproduction URL

App Router

Reproduction description

it was described before

Expected behaviour

i18n doesn't get in touch with request for next own api, js, css and so on...

@zavalit zavalit added bug Something isn't working unconfirmed Needs triage. labels Mar 10, 2025
Copy link

Thank you for your report!

Unfortunately, the reproduction is missing or incomplete, and as such we cannot investigate this issue. Please add a reproduction to the issue, otherwise it will be closed automatically.

Templates:

Creating a good reproduction takes time.

To help us resolve the issue quickly, please simplify the reproduction as much as possible by removing any unnecessary code, files, and dependencies that are not directly related to the problem. The easier it is for us to see the issue, the faster we can help you.

Apart from the reproduction, make sure to include the precise steps on how to reproduce the issue, e.g.:

  1. Open reproduction
  2. Click on …
  3. See error: …

Thank you for your understanding!

FAQ

"I've included a reproduction, what is missing?"

This comment might have been added because your reproduction doesn't point to a destination where the issue can be reproduced. Please make sure that the latest changes were saved in the reproduction and that the link is correct.

@mezotv
Copy link

mezotv commented Mar 22, 2025

Hey @zavalit do you use relative or absolute paths? I would suggest not using absolute paths and following the docs, thats what fixed this bug for us!

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

No branches or pull requests

3 participants