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

Cannot read properties of undefined (reading 'exportMode') #2552

Open
thole7990 opened this issue Sep 20, 2024 · 9 comments
Open

Cannot read properties of undefined (reading 'exportMode') #2552

thole7990 opened this issue Sep 20, 2024 · 9 comments

Comments

@thole7990
Copy link

What is the location of your example repository?

No response

Which package or tool is having this issue?

Hydrogen

What version of that package or tool are you using?

@shopify/hydrogen@latest

What version of Remix are you using?

No response

Steps to Reproduce

I create new application by running npm create @shopify/hydrogen@latest
Everything is good if i run pnpm run dev. but if i run pnpm run build. i got this error
Cannot read properties of undefined (reading 'exportMode') │
│ │
│ To investigate the issue, examine this stack trace: │
│ at getRenderedDependencies (.../node_modules/rollup/dist/es/shared/node-entry.js:16815) │
│ at render (.../node_modules/rollup/dist/es/shared/node-entry.js:16366) │
│ at (.../node_modules/rollup/dist/es/shared/node-entry.js:18049) │
│ at map │
│ at renderChunks (.../node_modules/rollup/dist/es/shared/node-entry.js:18049) │
│ at generate (.../node_modules/rollup/dist/es/shared/node-entry.js:18294) │
│ at processTicksAndRejections (node:internal/process/task_queues:95) │
│ at (.../node_modules/rollup/dist/es/shared/node-entry.js:20845) │
│ at async catchUnfinishedHookActions │
│ (.../node_modules/rollup/dist/es/shared/node-entry.js:20274) │
│ at build (.../node_modules/vite/dist/node/chunks/dep-DyBnyoVI.js:65391)

Expected Behavior

Need to build success

Actual Behavior

getting error like description

@wizardlyhel
Copy link
Contributor

I cannot reproduce this on my end. Can you give me more information about the environment you are executing this?

  • Operating system
  • node version
  • npm version
  • pnpm version

Does the build command works if you run it with npm command instead?

@thole7990
Copy link
Author

thole7990 commented Sep 20, 2024 via email

@wizardlyhel
Copy link
Contributor

I'm generating project with tailwind option. I can't reproduce the error you are getting

@wizardlyhel
Copy link
Contributor

Maybe this would help #2557

@IngoVals
Copy link

Maybe this would help #2557

Not sure if this is the same issue as I was having, but try this.

pnpm add [email protected]

@christoff-linde
Copy link

Maybe this would help #2557

Not sure if this is the same issue as I was having, but try this.

pnpm add [email protected]

This worked for me :) Thank you :)

Also as a side note: I tried this with (at the time of writing) latest tailwindcss alpha of [email protected], and the build still fails even after performing the steps above. So for now, will keep it locked to 17 for some reason.

@IngoVals
Copy link

IngoVals commented Oct 6, 2024

Maybe this would help #2557

Not sure if this is the same issue as I was having, but try this.
pnpm add [email protected]

This worked for me :) Thank you :)

Also as a side note: I tried this with (at the time of writing) latest tailwindcss alpha of [email protected], and the build still fails even after performing the steps above. So for now, will keep it locked to 17 for some reason.

I think it worked up to alpha.21

@thole7990
Copy link
Author

thole7990 commented Oct 7, 2024 via email

@christoff-linde
Copy link

Maybe this would help #2557

Not sure if this is the same issue as I was having, but try this.
pnpm add [email protected]

This worked for me :) Thank you :)

Also as a side note: I tried this with (at the time of writing) latest tailwindcss alpha of [email protected], and the build still fails even after performing the steps above. So for now, will keep it locked to 17 for some reason.

I think it worked up to alpha.21

Hmm ok, will give this a try. Thanx 🙃

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

4 participants