abiroot
abiroot
WWasp-lang
Created by abiroot on 10/12/2024 in #🙋questions
Load Custom fonts from `src/client/fonts/HossRound`
I added a custom font to the path: app/src/client/fonts/HossRound/Hoss-Round-Bold.otf and setup my Tailwindconfig and css to load that font. Whenever I load the font, vite gives me a 403 error: The request url "/app/src/client/fonts/HossRound/Hoss-Round-Bold.otf" is outside of Vite serving allow list. I tried changing my vite config to the below to allow the font: export default defineConfig({ server: { open: true, fs: { allow: [ path.resolve(__dirname, "../src/client/static/fonts"), ], }, }, }); But it still failed with the error: app/.wasp/out/web-app/src/index.tsx" is outside of Vite serving allow list.. It seems that under the hood Wasp is somewhere setting the fs allow path and not allowing me to change it.
13 replies
WWasp-lang
Created by abiroot on 10/12/2024 in #🙋questions
resource exhausted (Too many open files)
This is not the first time that this happens, for some still unknown reason, when doing any file change, instead of recompiling as it should, my wasp start stops and throw a resource exhausted (Too many open files) error. I tried wasp clean but didn't work. My project is totally unusable, any change I do breaks wasp start It's a haskell error, but I'm not sure why it's happening.
10 replies
WWasp-lang
Created by abiroot on 9/28/2024 in #🙋questions
getDirectoryContents:openDirStream: resource exhausted (Too many open files)
I keep getting this error whenever I do a change to my files. My public folder is still the default one, I haven't done any major changes. What could be causing this error? Below is my wasp start log.
[ Server ] GET /auth/me 304 8.608 ms - -
[ Server ] GET /auth/me 304 6.095 ms - -
[ Server ] GET /auth/me 304 4.772 ms - -
[ Server ] POST /operations/get-customer-portal-url 200 4.568 ms - 13
[ Server ] POST /operations/get-customer-portal-url 200 10.711 ms - 13
[ Server ] GET /auth/me 304 8.394 ms - -
[ Server ] [nodemon] restarting due to changes...
[ Client ] 21:09:19 [vite] page reload /Users/lamba/Projects/WASP/<project>/app/src/payment/areeba/webhook.ts
[ Server ] [nodemon] starting `npm run bundle-and-start || exit 1`
[ Server ]
[ Server ] > [email protected] bundle-and-start
[ Server ] > npm run bundle && npm run start
[ Server ]
🐝 --- Recompiling on file change... ----------------------------------------------


[ Server ]
[ Server ] > [email protected] bundle
[ Server ] > rollup --config --silent
[ Server ] wasp-bin: /Users/lamba/Projects/WASP/<project>/app/public/: getDirectoryContents:openDirStream: resource exhausted (Too many open files)
[ Server ] GET /auth/me 304 8.608 ms - -
[ Server ] GET /auth/me 304 6.095 ms - -
[ Server ] GET /auth/me 304 4.772 ms - -
[ Server ] POST /operations/get-customer-portal-url 200 4.568 ms - 13
[ Server ] POST /operations/get-customer-portal-url 200 10.711 ms - 13
[ Server ] GET /auth/me 304 8.394 ms - -
[ Server ] [nodemon] restarting due to changes...
[ Client ] 21:09:19 [vite] page reload /Users/lamba/Projects/WASP/<project>/app/src/payment/areeba/webhook.ts
[ Server ] [nodemon] starting `npm run bundle-and-start || exit 1`
[ Server ]
[ Server ] > [email protected] bundle-and-start
[ Server ] > npm run bundle && npm run start
[ Server ]
🐝 --- Recompiling on file change... ----------------------------------------------


[ Server ]
[ Server ] > [email protected] bundle
[ Server ] > rollup --config --silent
[ Server ] wasp-bin: /Users/lamba/Projects/WASP/<project>/app/public/: getDirectoryContents:openDirStream: resource exhausted (Too many open files)
11 replies
WWasp-lang
Created by abiroot on 9/24/2024 in #🙋questions
Standalone .wasp output generation
I'm encountering this problem a lot, where I kind of reach a racing condition. I declare a function in my operations.ts before declaring it in the main.wasp file first, causing my wasp start to break. I'll have to undo my operations.ts changes, declare the Query/Action in the main.wasp, do a wasp start so it generates the .wasp/out types, then implement my operations.ts changes. Not to mention when you forgot a small change in main.wasp having to do all that again. Is there a wasp command that only generates the .wasp/out types?
15 replies