TanStackT
TanStack4mo ago
11 replies
ripe-gray

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 ....
Was this page helpful?