Šlukas MacPrásk
WWasp-lang
•Created by Šlukas MacPrásk on 4/16/2024 in #🙋questions
Google Auth re-using the OAuth token
If I want to re-use the Google OAuth for Google API client (that does some operations on behalf of the logged in user on the server), what are the steps?
12 replies
WWasp-lang
•Created by Šlukas MacPrásk on 3/15/2024 in #🙋questions
Importing a json module
Hello again! One other minor issue I encountered: how can I import a JSON module (import { something } from "./somewhere/my.json";) ?
I followed some TS tutorial and enabled esModuleInterop and resolveJsonModule compilerOptions in tsconfig.json but I get a build error in [ Wasp ] TS2732 cannot find module … consider using --resolveJsonModule
3 replies
WWasp-lang
•Created by Šlukas MacPrásk on 3/13/2024 in #🙋questions
Importing external CSS
Hello, I’d like to use "flag-icons" package which one can import in normal React apps with:
import "node_modules/flag-icons/css/flag-icons.min.css";
But I get errors with file not found when building with Wasp — if I try to import it with "../../…..", then it builds but there’s an error in the browser that the file can’t be accessed.
What to do?8 replies