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

Unable to run npx quartz create on fresh install #544

Closed
JELAshford opened this issue Oct 19, 2023 · 4 comments
Closed

Unable to run npx quartz create on fresh install #544

JELAshford opened this issue Oct 19, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@JELAshford
Copy link

Describe the bug
On a fresh install of quartz, I am unable to run npx quartz create to setup the site. An error occurs in the sass module:

 npx quartz create
/Users/jamesashford/Documents/Projects/Programming/All Projects/quartz/node_modules/sass/sass.dart.js:113421
    if (ua.indexOf("DumpRenderTree") >= 0) return hooks;
           ^

TypeError: Cannot read properties of undefined (reading 'indexOf')
    at /Users/jamesashford/Documents/Projects/Programming/All Projects/quartz/node_modules/sass/sass.dart.js:113421:12
    at Object.applyHooksTransformer (/Users/jamesashford/Documents/Projects/Programming/All Projects/quartz/node_modules/sass/sass.dart.js:1852:14)
    at Object.initHooks (/Users/jamesashford/Documents/Projects/Programming/All Projects/quartz/node_modules/sass/sass.dart.js:1832:251)
    at Object.initNativeDispatchContinue (/Users/jamesashford/Documents/Projects/Programming/All Projects/quartz/node_modules/sass/sass.dart.js:1798:9)
    at Object.initNativeDispatch (/Users/jamesashford/Documents/Projects/Programming/All Projects/quartz/node_modules/sass/sass.dart.js:1792:9)
    at Object.getNativeInterceptor (/Users/jamesashford/Documents/Projects/Programming/All Projects/quartz/node_modules/sass/sass.dart.js:27602:13)
    at Object.getInterceptor$x (/Users/jamesashford/Documents/Projects/Programming/All Projects/quartz/node_modules/sass/sass.dart.js:27851:16)
    at Object.set$compile$x (/Users/jamesashford/Documents/Projects/Programming/All Projects/quartz/node_modules/sass/sass.dart.js:27915:16)
    at Object.main (/Users/jamesashford/Documents/Projects/Programming/All Projects/quartz/node_modules/sass/sass.dart.js:22700:9)
    at main2 (/Users/jamesashford/Documents/Projects/Programming/All Projects/quartz/node_modules/sass/sass.dart.js:24815:9)

Node.js v21.0.0

To Reproduce
Steps to reproduce the behavior:

  1. Clone this repo (git clone git@github.com:jackyzha0/quartz.git)
  2. Run npm i
  3. Run npx quartz create
  4. See error

Expected behavior
Based on this info, a terminal interface to guide the setup.

Screenshots
Terminal output on attempt:
image

Desktop (please complete the following information):

  • Device: Macbook Pro 2019
  • OS: Sonoma 14.0

Additional context
I'm very new to node and TypeScript, so I apologise if I'm missing something obvious - googling around the issue provided very vague results! Happy to provide more info as requested :)

@JELAshford JELAshford added the bug Something isn't working label Oct 19, 2023
@jackyzha0
Copy link
Owner

That's weird I've never seen this before, can you try installing using the provided lockfile instead? rm -rf node_modufles and then npm ci

@JELAshford
Copy link
Author

Same error after doing that then running npx quartz create, unfortunately!

@qrzbing
Copy link

qrzbing commented Oct 20, 2023

The newest nodejs will cause this error, you can use nodejs LTS.

@JELAshford
Copy link
Author

JELAshford commented Oct 20, 2023

Installing NodeJS LTS did the trick - thank you @qrzbing! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants