pnpm dev
works... but pnpm build
breaks app... Any ideas?
#257
-
Hi, When directly requesting any page with graphql data, it responds with: When browsing indirectly (by browsing to another page an then clicking to go to any graphql data page) it shows the page but with undefined values. the error is as follows:
The graphql version is 15.8.0 (also in the resolutions) Any ideas why this happens and how I can debug this? Any config I can set to get more information about th error? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
So, solved this myself, given the time.... So, I went for including individual packages, but those things in the past did also bring trouble... but.... turns out the trouble was actually because while testing out the different hoisted - nonhoisted, dependencies and their versions, the package stores were getting corrupted and while I was mostly prune(ing) (and store prune(ing) them, sometimes I also needed to do full deletes. While this was going on I wasn't very consistent in cleaning up, so I might have gotten some false positives in there, as in "did not work for me". So my solution (at least for now) is:
|
Beta Was this translation helpful? Give feedback.
So, solved this myself, given the time....
In the past I had checked the
node-linker=hoisted
option in .npm, but it had given me problems with other modules not updating etc, so I went for not using that option. It turns out this was causing the problem.So, I went for including individual packages, but those things in the past did also bring trouble... but.... turns out the trouble was actually because while testing out the different hoisted - nonhoisted, dependencies and their versions, the package stores were getting corrupted and while I was mostly prune(ing) (and store prune(ing) them, sometimes I also needed to do full deletes. While this was going on I wasn't very consistent in cle…