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
Here's a repro. npm i && npm run dev to see the error.
Basically inside ./server/index.tsx I have the following:
import'linkedom-global';//TODO: Delete this dependencyimportfsfrom'node:fs';importpathfrom'node:path';importprocessfrom'node:process';import{favicon,serveStatic}from'noren/middlewares';importServerfrom'noren/node';importlivereloadfrom'tiny-livereload/express';import{renderToString}from'voby';import{useRouter}from'voby-simple-router';importRoutesfrom'../src/app/routes';importAppfrom'../src/app';
Where the order of those imports is significant, because first of all I'm shimming the DOM by loading linkedom-global, which other things will subsequently rely upon.
The problem is that after bundling that code (npm run dev:bundle:server to just bundle that file), the order imports changes, which is the bug in question, which in this case breaks my app.
I believe the problem in this case is caused by the dynamic import(). A quick workaround could be to convert the dynamic import() expression into a static import statement. I'll try to work fixing this bug into the eventual linker rewrite that I need to do for esbuild.
Here's a repro.
npm i && npm run dev
to see the error.Basically inside
./server/index.tsx
I have the following:Where the order of those imports is significant, because first of all I'm shimming the DOM by loading
linkedom-global
, which other things will subsequently rely upon.The problem is that after bundling that code (
npm run dev:bundle:server
to just bundle that file), the order imports changes, which is the bug in question, which in this case breaks my app.For whatever reason some imports now happen before the
linkedom-global
import.The text was updated successfully, but these errors were encountered: