Sorry the description is vague. I can hardly understand what's going on, neither can I isolate the problem. Please let me know what extra info you'd like me to add.
I'm migrating a big codebase to React + Remix with Vite.
I could build my project just fine with @wyw-in-js/vite@0.5.0 but starting from 0.5.1 I'm getting a lot of errors at build time "Pre-transform error: Internal server error: Soft-invalidated module should not have existing transform result"
Here's a sample of the output (it goes on and on and on...):
...
[vite] hmr update /src/components/clients/setlists/Card.view.wyw-in-js.css
[vite] hmr update /src/components/clients/setlists/Card.view.wyw-in-js.css (x2)
[vite] Internal server error: Internal server error: Soft-invalidated module "/src/theme/chords/Button.tsx" should not have existing transform result
at handleModuleSoftInvalidation (file://client/node_modules/vite/dist/node/chunks/dep-C1-ZB6nQ.js:52474:11)
at getCachedTransformResult (file://client/node_modules/vite/dist/node/chunks/dep-C1-ZB6nQ.js:52329:58)
at doTransform (file://client/node_modules/vite/dist/node/chunks/dep-C1-ZB6nQ.js:52287:26)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async viteTransformMiddleware (file://client/node_modules/vite/dist/node/chunks/dep-C1-ZB6nQ.js:62168:24)
[vite] hmr update /src/components/clients/setlists/SetlistPlaceholder.view.wyw-in-js.css
[vite] hmr update /src/components/clients/channels/SummaryPresenter.view.wyw-in-js.css
[vite] page reload client/src/theme/songs/MusicCard.wyw-in-js.css
[vite] hmr update /src/components/clients/songs/LinksList.view.wyw-in-js.css
[vite] hmr update /src/theme/chords/IconButton.wyw-in-js.css
[vite] hmr update /src/components/clients/setlists/Card.view.wyw-in-js.css
[vite] hmr update /src/theme/songs/MusicCard.wyw-in-js.css
[vite] hmr update /src/components/shared/Toasts.wyw-in-js.css
[vite] hmr update /src/theme/chords/IconButton.wyw-in-js.css
[vite] Pre-transform error: Internal server error: Soft-invalidated module "/src/theme/chords/IconButton.tsx" should not have existing transform result
[vite] hmr update /src/components/clients/setlists/Card.view.wyw-in-js.css
...
[vite] Pre-transform error: Internal server error: Soft-invalidated module "/src/components/clients/modals/Login.redux.ts" should not have existing transform result
...
Note with version 0.5.0 there's no hmr update in the console output
Environment
^0.5.1
(Linaria6.1.0
)5.3.2
18.17.1
14.4.1
Description
Sorry the description is vague. I can hardly understand what's going on, neither can I isolate the problem. Please let me know what extra info you'd like me to add.
I'm migrating a big codebase to React + Remix with Vite.
I could build my project just fine with
@wyw-in-js/vite@0.5.0
but starting from0.5.1
I'm getting a lot of errors at build time "Pre-transform error: Internal server error: Soft-invalidated module should not have existing transform result"Here's a sample of the output (it goes on and on and on...):
Note with version 0.5.0 there's no
hmr update
in the console output