You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can create a new Hydrogen project and it will have this issue
Which package or tool is having this issue?
Hydrogen
What version of that package or tool are you using?
2024.7.4
What version of Remix are you using?
2.10.1
Steps to Reproduce
Create a new Hydrogen project using npm create @shopify/hydrogen@latest.
Try to use npx shopify hydrogen debug cpu
Expected Behavior
CPU profiling to work.
Actual Behavior
I get an error that says SourceMapConsumer is not a constructor.
I did some investigating and it looks like there's a couple issues, the first one seems to be related to CJS compat in the cpu-profiler.ts file where it imports source-map. When the file is actually run SourceMapConsumer is on default from that module. After resolving that there seems to be an issue where Hydrogen is not finishing the build when profiling.
The text was updated successfully, but these errors were encountered:
What is the location of your example repository?
You can create a new Hydrogen project and it will have this issue
Which package or tool is having this issue?
Hydrogen
What version of that package or tool are you using?
2024.7.4
What version of Remix are you using?
2.10.1
Steps to Reproduce
npm create @shopify/hydrogen@latest
.npx shopify hydrogen debug cpu
Expected Behavior
CPU profiling to work.
Actual Behavior
I get an error that says
SourceMapConsumer is not a constructor
.I did some investigating and it looks like there's a couple issues, the first one seems to be related to CJS compat in the
cpu-profiler.ts
file where it importssource-map
. When the file is actually runSourceMapConsumer
is ondefault
from that module. After resolving that there seems to be an issue where Hydrogen is not finishing the build when profiling.The text was updated successfully, but these errors were encountered: