abiroot
abiroot
WWasp-lang
Created by Jakub Idziak on 10/13/2024 in #đŸ™‹questions
OpenSaaS to Wasp 0.15.X update
Don't forget to go through the https://wasp-lang.dev/docs/migration-guides/migrate-from-0-14-to-0-15 migration check lists
7 replies
WWasp-lang
Created by abiroot on 10/12/2024 in #đŸ™‹questions
Load Custom fonts from `src/client/fonts/HossRound`
Thank you @miho Isin't it better if Wasp had the default vite.config with searchForWorkspaceRoot(process.cwd()), in its fs.allow config?
13 replies
WWasp-lang
Created by abiroot on 10/12/2024 in #đŸ™‹questions
Load Custom fonts from `src/client/fonts/HossRound`
I added resolveProjectPath('../app/.wasp/out/web-app/src/') to my fs allow list, and it worked: import { defineConfig } from "vite"; import { resolveProjectPath } from "wasp/dev";
export default defineConfig({
server: {
open: true,
fs: {
allow: [
// Add the path to your fonts here
resolveProjectPath('./src/client/fonts'),
resolveProjectPath('../app/.wasp/out/web-app/src/'),
],
},
},
});
export default defineConfig({
server: {
open: true,
fs: {
allow: [
// Add the path to your fonts here
resolveProjectPath('./src/client/fonts'),
resolveProjectPath('../app/.wasp/out/web-app/src/'),
],
},
},
});
But I feel like now I made my whole app public? Is this a security mistake?
13 replies
WWasp-lang
Created by abiroot on 10/12/2024 in #đŸ™‹questions
Load Custom fonts from `src/client/fonts/HossRound`
@kapa.ai
13 replies
WWasp-lang
Created by abiroot on 10/12/2024 in #đŸ™‹questions
Load Custom fonts from `src/client/fonts/HossRound`
Now I get this error: [ Client!] 02:23:17 [vite] Pre-transform error: Failed to load url /src/index.tsx (resolved id: /Users/lamba/Projects/WASP/my-saas/app/.wasp/out/web-app/src/index.tsx). Does the file exist? [ Client!] The request url "/Users/lamba/Projects/WASP/my-saas/app/.wasp/out/web-app/src/index.tsx" is outside of Vite serving allow list.
13 replies
WWasp-lang
Created by abiroot on 10/12/2024 in #đŸ™‹questions
resource exhausted (Too many open files)
It worked after doing: npm install @stitches/react npm cache clean --force npm install npm install --save-dev @types/jest ulimit -n 10000
10 replies
WWasp-lang
Created by abiroot on 10/12/2024 in #đŸ™‹questions
resource exhausted (Too many open files)
Ok if this might help anyone debugging this, when I did npx tsc --noEmit I got these errors:
10 replies
WWasp-lang
Created by abiroot on 10/12/2024 in #đŸ™‹questions
resource exhausted (Too many open files)
Ok not working at all. Any change I do breaks wasp start
10 replies
WWasp-lang
Created by abiroot on 10/12/2024 in #đŸ™‹questions
resource exhausted (Too many open files)
I wish I had haskell experience so I could help debug this. From what it seems, haskell is one of the hardest languages right there xD
10 replies
WWasp-lang
Created by abiroot on 9/28/2024 in #đŸ™‹questions
getDirectoryContents:openDirStream: resource exhausted (Too many open files)
Hey @sodic thank you for your support as always! It got solved by itself after doing a wasp clean
11 replies
WWasp-lang
Created by abiroot on 9/28/2024 in #đŸ™‹questions
getDirectoryContents:openDirStream: resource exhausted (Too many open files)
Can open files in my IDE cause this? I use Visual Studio code, and currently I have about 10 files open. But this never happened before in previous environments, I have a Apple M2 Pro with 16 GB of rams
11 replies
WWasp-lang
Created by abiroot on 9/24/2024 in #đŸ™‹questions
Standalone .wasp output generation
Still the default actually: total 2520 drwxr-xr-x@ 6 lamba staff 192 Sep 23 20:59 . drwxr-xr-x@ 22 lamba staff 704 Sep 24 17:18 .. -rw-r--r--@ 1 lamba staff 0 Sep 23 20:59 .gitkeep -rw-r--r--@ 1 lamba staff 860453 Sep 23 20:59 banner.png -rw-r--r--@ 1 lamba staff 171689 Sep 23 20:59 favicon.ico -rw-r--r--@ 1 lamba staff 252425 Sep 23 20:59 public-banner.png
15 replies
WWasp-lang
Created by abiroot on 9/24/2024 in #đŸ™‹questions
Standalone .wasp output generation
Hey guys, any idea why I'm getting this error whenever I do a file change: wasp-bin: /Users/<user>/Projects/WASP/<project>/app/public/: getDirectoryContents:openDirStream: resource exhausted (Too many open files) It used to auto compile, now wasp start breaks whenever I change a file
15 replies
WWasp-lang
Created by abiroot on 9/24/2024 in #đŸ™‹questions
Standalone .wasp output generation
Thank you @sodic ! Really appreciate your efforts.
Not to mention when you forgot a small change in main.wasp having to do all that again.
For example, when I have to rename the action/query name from main.wasp
15 replies
WWasp-lang
Created by abiroot on 9/24/2024 in #đŸ™‹questions
Standalone .wasp output generation
wasp compile still not working, the query type is not being generated
15 replies