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.

TodoMVC Express Starter appears to be broken

See original GitHub issue

A fresh install of the TodoMVC example doesn’t appear to be working properly. The header doesn’t render and I get the following error in dev:

Error: failed to load module for ssr: /src/components/header/h_header_header.js
    at instantiateModule (/Users/ryancarniato/Development/examples/qwik-todomvc/node_modules/vite/dist/node/chunks/dep-f5552faa.js:60025:15)
Error: failed to load module for ssr: /src/components/footer/h_footer_footer.js
    at instantiateModule (/Users/ryancarniato/Development/examples/qwik-todomvc/node_modules/vite/dist/node/chunks/dep-f5552faa.js:60025:15)

Steps to Reproduce:

  1. npm init qwik@latest
  2. ✔ Select a starter › Todo ✔ Select a server › Express

  3. npm i npm run dev

Also appears npm run build fails as well:

vite v2.7.13 building for production...
✓ 2 modules transformed.
[vite:build-import-analysis] Parse error @:24:17
file: /Users/ryancarniato/Development/examples/qwik-todomvc/src/components/app/app.tsx:24:16
22:         <Main todos={props.todos} />
23:         <Footer todos={props.todos} />
24:       </section>
                    ^
25:     );
26:   });
error during build:
Error: Parse error @:24:17
    at parse$f (/Users/ryancarniato/Development/examples/qwik-todomvc/node_modules/vite/dist/node/chunks/dep-f5552faa.js:20847:353)
    at Object.transform (/Users/ryancarniato/Development/examples/qwik-todomvc/node_modules/vite/dist/node/chunks/dep-f5552faa.js:21106:27)
[!] Error: unfinished hook action(s) on exit:
(vite:load-fallback) load "/Users/ryancarniato/Development/examples/qwik-todomvc/node_modules/@builder.io/qwik/qwikloader.js"
(vite:load-fallback) load "/Users/ryancarniato/Development/examples/qwik-todomvc/node_modules/@builder.io/qwik/core.mjs"

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Feb 16, 2022

No, the project creation is working but the build fails on the server build & the dev shows only white page without no content.

0reactions
nilsrigacommented, Feb 23, 2022

Same

Error: failed to load module for ssr: /src/h_main_app_onmount.js
  at instantiateModule (C:\test-qwik\qwik-app\node_modules\vite\dist\node\chunks\dep-c9c9d3e5.js:56042:15)
Read more comments on GitHub >

github_iconTop Results From Across the Web

[vite:build-import-analysis] parse error
using vite-plugin-string while importing broken html syntax that is not the index.html ... BuilderIO/qwikTodoMVC Express Starter appears to be broken#218.
Read more >
Changelog
We have added a few new starter projects, including a collection of commerce design ... This includes: showing modals, refreshing data from Plasmic...
Read more >
Untitled
1 pci express x16 slot graphics card, Peoples party pakistan flag, ... The future church book review, Nzb files free, Iphone 5 damaged...
Read more >
10.1007/978-1-4842-0037-7.pdf - Springer
The package.json file with an added Express.js v4.8.1 dependency looks as follows: ... Each bit of functionality can be split into a separate...
Read more >
Learning JavaScript Design Patterns
It must describe a relationship: In some cases it may appear that a pattern describes a type of module. Although an implementation may...
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