solid-start icon indicating copy to clipboard operation
solid-start copied to clipboard

[Bug?]: `Cannot read properties of undefined (reading 'devServer')` when building

Open danieltroger opened this issue 1 year ago • 4 comments

Duplicates

  • [X] I have searched the existing issues

Latest version

  • [X] I have tested the latest version

Current behavior 😯

Cannot read properties of undefined (reading 'devServer') (full error message: https://discord.com/channels/722131463138705510/910635844119982080/1196842080144736306)

Expected behavior 🤔

Builds without errors

Steps to reproduce 🕹

Steps:

  1. Check out this branch https://github.com/danieltroger/vinxi-repro/tree/dt/patched
  2. yarn
  3. yarn build

Context 🔦

No response

Your environment 🌎

No response

danieltroger avatar Jan 16 '24 16:01 danieltroger

Also when setting ssr: false no index.html is emitted, probably due to this issue?

danieltroger avatar Jan 16 '24 16:01 danieltroger

I followed a bit of the conversation in Discord but it seems that part of the issue was fixed in 1.4? And that this is related to which package manager you use? Just hoping the consolidate the state of things here because tracking through discord is a bit of a mess.

ryansolid avatar Jan 26 '24 18:01 ryansolid

but it seems that part of the issue was fixed in 1.4?

No, not this exact issue, the reproduction link above runs 1.4

And that this is related to which package manager you use?

Yeah for some reason this only happens when using yarn berry.

Just hoping the consolidate the state of things here because tracking through discord is a bit of a mess.

Makes sense, that's why I opened an issue here too, for better tracking.

The last status was that I gave @nksaraf some pointers on how to dig into what's happening here (since I'm not sure they know all the tricks of debugging packages in yarn berry) and confirmed it only happens on yarn berry.

danieltroger avatar Jan 27 '24 10:01 danieltroger

So this is another Yarn Berry related issue. I just want to keep this clean. Can we close as a duplicate of #1177?

ryansolid avatar Feb 05 '24 19:02 ryansolid