Skip to content

don't work in standalone mode #1773

@zavalit

Description

@zavalit

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...

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions