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

[Bug?]: Wrong server build when using "debug" package #291

Open
ryansolid opened this issue May 10, 2024 · 0 comments
Open

[Bug?]: Wrong server build when using "debug" package #291

ryansolid opened this issue May 10, 2024 · 0 comments

Comments

@ryansolid
Copy link
Collaborator

From solidjs/solid-start#1238

Current behavior 😯

import something from "debug" leads to aliasing of something to console.debug instead of using actual "debug" package.

Expected behavior 🤔

"debug" package should not have special treatment and should be built/bundled as any other package.

Steps to reproduce 🕹

Here's the reproduction repository: https://github.com/indeyets/vinxi-debug-bug
It is created using official procedure for solid-start projects.

I added "debug" to dependencies using regular name and using a "ddbbgg" alias. Used both in app.tsx to show the difference.

  1. npm install
  2. npm run build
  3. see .output/server/chunks/nitro/node-server.mjs, search for ".extend("

on my machine it looks like this: const It = debug$1(), Bt = It.extend("error"), Ht = nt("debug2:solid:root"), Nt = Ht.extend("error");

It refers to from "debug" and is broken, Ht refers to from "ddbbgg" and works fine

Context 🔦

No response

Your environment 🌎

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant