jtawf
WWasp-lang
•Created by jtawf on 8/10/2023 in #đŸ™‹questions
using client-side env variables
Error Message: Cannot find module '@wasp/entities'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
Cannot find module 'react'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
Cannot find module '@aws-sdk/client-s3'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?
18 replies
WWasp-lang
•Created by jtawf on 8/10/2023 in #đŸ™‹questions
using client-side env variables
when i added the module flag it threw different errors about not being able to find other modules like react or @wasp/types
18 replies
WWasp-lang
•Created by jtawf on 8/10/2023 in #đŸ™‹questions
using client-side env variables
for some reason it doesn't, i never modified ts.config either
18 replies
WWasp-lang
•Created by jtawf on 8/10/2023 in #đŸ™‹questions
using client-side env variables
thanks @miho, do i have to change the module flag as mentioned (The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node12', or 'nodenext'.) or will the fix include that?
18 replies
WWasp-lang
•Created by jtawf on 8/10/2023 in #đŸ™‹questions
using client-side env variables
ok thanks!
18 replies
WWasp-lang
•Created by jtawf on 7/27/2023 in #đŸ™‹questions
generateGptResponse error
hmm okay, just gave it a try and still not working, does a better look at the try-catch within the function help?
12 replies
WWasp-lang
•Created by jtawf on 7/27/2023 in #đŸ™‹questions
generateGptResponse error
and logs are here as well
12 replies
WWasp-lang
•Created by jtawf on 7/27/2023 in #đŸ™‹questions
generateGptResponse error
of course @Vinny (@Wasp)! Just for context here I verified that my open api key is being properly used and I'm receiving the 'fetching' log that details my payload then the errors occurs when fetching the response and I don't receive the log detailing my response
12 replies
WWasp-lang
•Created by jtawf on 7/27/2023 in #đŸ™‹questions
generateGptResponse error
hey guys sorry for the late reply, I'm using the saas pern template and the issue appears when making the call to the GPT api. I call the action through the front-end as well.
12 replies
WWasp-lang
•Created by fossfighter on 5/8/2023 in #đŸ™‹questions
accessing env on client
hey hey, having the same issue but slightly different @Wasp Team. All my variables in env.server are prefixed with REACTAPP (besides SEND_EMAILS_IN_DEVELOPMENT, MAILGUN_API_KEY, MAILGUN_DOMAIN) and when I import.meta.env; client-side the issue I get is: The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'es2022', 'esnext', 'system', 'node12', or 'nodenext'.
31 replies