Skip to content

punycode deprecation #7476

@JasonGoemaat

Description

@JasonGoemaat

[REQUIRED] Environment info

firebase-tools: 13.13.3

Platform: Windows 10

node: 22.5.1

[REQUIRED] Test case

Trying to run emulator with this:

$ firebase --project demo-friendly-eats emulators:exec --import ./app-data-seed --ui 'ng serve'
(node:25952) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

[REQUIRED] Steps to reproduce

Tried to run the firestore sample at quickstart firestore following directions. The npm script fails, I think it sees the deprecation as an error. I was able to start it using the previous command manually though.

Reading up a little it seems like the punycode module has been deprecated since node 7, but changed to a runtime warning as of node 21. I'm not sure where the node version

[REQUIRED] Expected behavior

Running with no errors or runtime warnings, running from npm script succeeds.

[REQUIRED] Actual behavior

There is a red runtime warning about punycode being deprecated, and I think it is what prevents the npm script from working:

    "start": "npm run pre-build && firebase --project demo-friendly-eats emulators:exec --import ./app-data-seed --ui 'ng serve'",

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions