T
TanStack12h ago
flat-fuchsia

Auth throwing errors

I just created fresh project with npm create @tanstack/start@latest -o tanstack-start-auth-test. Then added auth accordingly to Authentication. Ended up with a project that i zipped and attached here. When trying to run npm run build i get
error during build:
[vite]: Rollup failed to resolve import "tanstack-start-injected-head-scripts:v" from "C:/Users/MT/source/testprojects/tanstack-start-auth-test/node_modules/@tanstack/start-server-core/dist/esm/loadVirtualModule.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`
at ....
error during build:
[vite]: Rollup failed to resolve import "tanstack-start-injected-head-scripts:v" from "C:/Users/MT/source/testprojects/tanstack-start-auth-test/node_modules/@tanstack/start-server-core/dist/esm/loadVirtualModule.js".
This is most likely unintended because it can break your application at runtime.
If you do want to externalize this module explicitly add it to
`build.rollupOptions.external`
at ....
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?