question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to run the docs locally

See original GitHub issue

Qwik Version

0.0.36

Operating System (or Browser)

Linux

Node Version (if applicable)

16.13.0

Which component is affected?

Qwik Optimizer (rust)

Expected Behaviour

I would like to run the qwik-docs on my machine, I’m running yarn workspace qwik-docs dev to do so.

Actual Behaviour

Here is what I get in return:

error when starting dev server:
Error [ERR_REQUIRE_ESM]: require() of ES Module /**/qwik/node_modules/node-fetch/src/index.js from /**/qwik/packages/qwik/dist/optimizer.cjs not supported.
Instead change the require of index.js in /**/qwik/packages/qwik/dist/optimizer.cjs to a dynamic import() which is available in all CommonJS modules.
    at Object.sys.dynamicImport (/**/qwik/packages/qwik/dist/optimizer.cjs:603:37)
    at Object.configureServer (/**/qwik/packages/qwik/dist/optimizer.cjs:2065:37)
    at createServer (file:///**/qwik/node_modules/vite/dist/node/chunks/dep-561c5231.js:59066:41)
    at async CAC.<anonymous> (file:///**/qwik/node_modules/vite/dist/node/cli.js:699:24)

Additional Information

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
mheverycommented, Jul 25, 2022

i think this is a known issue. Still in the midst of migrating everything to the latest Vite 3 and Qwik City

1reaction
edbzncommented, Nov 25, 2022

Hi, I confirm the issue is gone. Thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to run a doc build locally · Issue #2154 - GitHub
Details. I want to look into contributing to readthedocs and started setting up my local version. Now i'm stuck at a point i...
Read more >
Development Installation
Install a local development instance of Read the Docs with our step by step ... Go to http://devthedocs.org to access your local instance...
Read more >
Unable to build docs on local host - Google Groups
When I run "make docs" on the local Ubuntu host, the command consistently fails with the following error: ----------. AssertionError: The page "index.md" ......
Read more >
Not able to run angular material docs on locally - Stack Overflow
then I run gulp docs to build docs, it was build and created /dist folder at root directory. after I run the gulp...
Read more >
Fix common issues in Google Drive
If you're having trouble viewing a file in Google Drive, here's how you can try to fix the issue. 1. Wait and try...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found