Skip to content

Nuxt build error with undici #8036

@emiltsang-flow

Description

@emiltsang-flow

Operating System

macOS 14.1

Browser Version

Chrome/ 121.0.6167.184

Firebase SDK Version

10.8.0

Firebase SDK Product:

Analytics, Auth, Installations, Performance

Describe your project's tooling

Nuxt: 2.17.0

Describe the problem

Failed to build with Nuxt.

[fatal] Nuxt build error
ERROR in ./node_modules/undici/lib/cache/cachestorage.js 13:2
Module parse failed: Unexpected character '#' (13:2)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| * @type {Map<string, import('./cache').requestResponseList}
| */

#caches = new Map()
|
| constructor () {
@ ./node_modules/undici/index.js 128:27-62
@ ./node_modules/@firebase/auth/dist/node/index.js
@ ./node_modules/firebase/auth/dist/index.cjs.js
@ ./plugins/firebase.js
@ ./.nuxt/index.js
@ ./.nuxt/server.js
@ multi ./.nuxt/server.js

Steps and code to reproduce issue

[fatal] Nuxt build error
ERROR in ./node_modules/undici/lib/cache/cachestorage.js 13:2
Module parse failed: Unexpected character '#' (13:2)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| * @type {Map<string, import('./cache').requestResponseList}
| */

#caches = new Map()
|
| constructor () {
@ ./node_modules/undici/index.js 128:27-62
@ ./node_modules/@firebase/auth/dist/node/index.js
@ ./node_modules/firebase/auth/dist/index.cjs.js
@ ./plugins/firebase.js
@ ./.nuxt/index.js
@ ./.nuxt/server.js
@ multi ./.nuxt/server.js

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions