Skip to content

Failed to parse JSON file #291

Open
Open
@cholakovdev

Description

@cholakovdev

Hello, we have downloaded the latest version of the package (woonuxt_base is 4.4.10), "yarn install" went well but after that when we run "yarn build" or "yarn dev:ssl" we get the following error:

[nuxi 10:19:09 AM] ERROR Nuxt Build Error: [vite:json] [plugin vite:json] woonuxt_base/app/locales/en-US.json: Failed to parse JSON file.
file: /Users/cholakovdev/Sites/crankk/woonuxt/woonuxt_base/app/locales/en-US.json

at getRollupError (node_modules/rollup/dist/es/shared/parseAst.js:397:41)
at error (node_modules/rollup/dist/es/shared/parseAst.js:393:42)
at Object.error (node_modules/rollup/dist/es/shared/node-entry.js:21867:20)
at Object.error (node_modules/rollup/dist/es/shared/node-entry.js:20929:42)
at Object.handler (node_modules/vite/dist/node/chunks/dep-DG3BLbPj.js:12172:16)
at Object.handler (node_modules/vite/dist/node/chunks/dep-DG3BLbPj.js:46441:15)
at node_modules/rollup/dist/es/shared/node-entry.js:22188:40

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

The file en-US.json looks fine, it seems that there is some dependency issue, does anyone know how to solve that?

P.S. Tested on node v23.11.0 and v20.18.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions