Rytkef
Rytkef
SSolidJS
Created by Rytkef on 6/25/2023 in #support
Solid-start-vercel rollup error
Solved the issue - it was indeed the googlapis, not the package itself, but the way I used it, one async call was outside of class and got to the top level during rollup processing. Thanks, you helped me a lot
36 replies
SSolidJS
Created by Rytkef on 6/25/2023 in #support
Solid-start-vercel rollup error
If it is the case I might simply stop using the googlapis package, I can probably write the auth routine without it
36 replies
SSolidJS
Created by Rytkef on 6/25/2023 in #support
Solid-start-vercel rollup error
I don't know, I'll look into it some more in the evening it could be the culprit
36 replies
SSolidJS
Created by Rytkef on 6/25/2023 in #support
Solid-start-vercel rollup error
Thank you for your help
36 replies
SSolidJS
Created by Rytkef on 6/25/2023 in #support
Solid-start-vercel rollup error
I guess problem is somewhere between them, I'll try to find out, but at least I have some direction
36 replies
SSolidJS
Created by Rytkef on 6/25/2023 in #support
Solid-start-vercel rollup error
And when using vercel as adapter removing googlapis makes it work
36 replies
SSolidJS
Created by Rytkef on 6/25/2023 in #support
Solid-start-vercel rollup error
As I mention in original post, not using vercel as adapter makes it work
36 replies
SSolidJS
Created by Rytkef on 6/25/2023 in #support
Solid-start-vercel rollup error
So clearing didn't help, I went one by one
36 replies
SSolidJS
Created by Rytkef on 6/25/2023 in #support
Solid-start-vercel rollup error
Maybe I'll try clearing node modules and package lock
36 replies
SSolidJS
Created by Rytkef on 6/25/2023 in #support
Solid-start-vercel rollup error
I had the same thought, tried to make rollup produce "es" instead of "csj" output, but none of these made any change
36 replies
SSolidJS
Created by Rytkef on 6/25/2023 in #support
Solid-start-vercel rollup error
Yeah, I have already tried both of these
36 replies
SSolidJS
Created by Rytkef on 6/25/2023 in #support
Solid-start-vercel rollup error
On the server side, I am using it for authorization
36 replies
SSolidJS
Created by Rytkef on 6/25/2023 in #support
Solid-start-vercel rollup error
I just updated it, one change, ssr set to false
36 replies
SSolidJS
Created by Rytkef on 6/25/2023 in #support
Solid-start-vercel rollup error
Yeah, but I forgot I have edited vite config since I tried it in dev mode
36 replies
SSolidJS
Created by Rytkef on 6/25/2023 in #support
Solid-start-vercel rollup error
tsconfig
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "node",
"jsxImportSource": "solid-js",
"jsx": "preserve",
"strict": true,
"types": ["solid-start/env"],
"baseUrl": "./",
"paths": {
"~/*": ["./src/*"]
}
}
}
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"resolveJsonModule": true,
"target": "ESNext",
"module": "ESNext",
"moduleResolution": "node",
"jsxImportSource": "solid-js",
"jsx": "preserve",
"strict": true,
"types": ["solid-start/env"],
"baseUrl": "./",
"paths": {
"~/*": ["./src/*"]
}
}
}
36 replies
SSolidJS
Created by Rytkef on 6/25/2023 in #support
Solid-start-vercel rollup error
package.json
{
"name": "testproj",
"scripts": {
"dev": "solid-start dev",
"build": "solid-start build",
"start": "solid-start start"
},
"type": "module",
"devDependencies": {
"@types/node": "^18.11.18",
"esbuild": "^0.14.54",
"postcss": "^8.4.21",
"solid-start-node": "^0.2.26",
"solid-start-vercel": "^0.2.26",
"typescript": "^4.9.4",
"vite": "^4.3.9",
"zod": "^3.21.4"
},
"dependencies": {
"@solidjs/meta": "^0.28.2",
"@solidjs/router": "^0.8.2",
"@suid/icons-material": "^0.6.1",
"@suid/material": "^0.12.1",
"@suid/vite-plugin": "^0.1.3",
"@trpc/client": "^10.18.0",
"@trpc/server": "^10.18.0",
"googleapis": "^118.0.0",
"solid-icons": "^1.0.4",
"solid-js": "^1.6.11",
"solid-masonry": "^0.1.6",
"solid-start": "^0.2.26",
"solid-start-trpc": "^0.0.16",
"undici": "^5.15.1"
},
"engines": {
"node": ">=18.16.1"
}
}
{
"name": "testproj",
"scripts": {
"dev": "solid-start dev",
"build": "solid-start build",
"start": "solid-start start"
},
"type": "module",
"devDependencies": {
"@types/node": "^18.11.18",
"esbuild": "^0.14.54",
"postcss": "^8.4.21",
"solid-start-node": "^0.2.26",
"solid-start-vercel": "^0.2.26",
"typescript": "^4.9.4",
"vite": "^4.3.9",
"zod": "^3.21.4"
},
"dependencies": {
"@solidjs/meta": "^0.28.2",
"@solidjs/router": "^0.8.2",
"@suid/icons-material": "^0.6.1",
"@suid/material": "^0.12.1",
"@suid/vite-plugin": "^0.1.3",
"@trpc/client": "^10.18.0",
"@trpc/server": "^10.18.0",
"googleapis": "^118.0.0",
"solid-icons": "^1.0.4",
"solid-js": "^1.6.11",
"solid-masonry": "^0.1.6",
"solid-start": "^0.2.26",
"solid-start-trpc": "^0.0.16",
"undici": "^5.15.1"
},
"engines": {
"node": ">=18.16.1"
}
}
36 replies
SSolidJS
Created by Rytkef on 6/25/2023 in #support
Solid-start-vercel rollup error
I could also share package.json or tsconfig if it were to help
36 replies
SSolidJS
Created by Rytkef on 6/25/2023 in #support
Solid-start-vercel rollup error
import solid from "solid-start/vite";
import vercel from "solid-start-vercel"
import suidPlugin from "@suid/vite-plugin";
import { defineConfig } from "vite";

export default defineConfig(() => { return {
plugins: [
solid({ssr:false, adapter: vercel() }),
suidPlugin()],
}})
import solid from "solid-start/vite";
import vercel from "solid-start-vercel"
import suidPlugin from "@suid/vite-plugin";
import { defineConfig } from "vite";

export default defineConfig(() => { return {
plugins: [
solid({ssr:false, adapter: vercel() }),
suidPlugin()],
}})
36 replies