nicop
nicop
Explore posts from servers
WWasp
Created by nicop on 12/20/2024 in #🙋questions
Unable to start wasp
I am getting the following error when trying to start wasp. I am running MacOS 15.2 [ Server ] > rollup --config --silent [ Client!] ✘ [ERROR] Expected identifier but found "import" [ Client!] [ Client!] (define name):1:0: [ Client!] 1 │ import.meta.dirname [ Client!] ╵ ~~ [ Client!] ✘ [ERROR] Expected identifier but found "import" [ Client!] (define name):1:0: [ Client!] 1 │ import.meta.filename [ Client!] ╵ ~~ [ Client!] ✘ [ERROR] Expected identifier but found "import" [ Client!] (define name):1:0: [ Client!] 1 │ import.meta.url [ Client!] ╵ ~~ [ Client!] failed to load config from /Users/nic/MerchantLens/.wasp/out/web-app/vite.config.ts [ Client!] error when starting dev server: [ Client!] Error: Build failed with 3 errors: [ Client!] (define name):1:0: ERROR: Expected identifier but found "import" [ Client!] (define name):1:0: ERROR: Expected identifier but found "import" [ Client!] (define name):1:0: ERROR: Expected identifier but found "import" [ Client!] at failureErrorWithLog (/Users/nic/MerchantLens/.wasp/out/web-app/node_modules/esbuild/lib/main.js:1476:15) [ Client!] at /Users/nic/MerchantLens/.wasp/out/web-app/node_modules/esbuild/lib/main.js:945:25 [ Client!] at runOnEndCallbacks (/Users/nic/MerchantLens/.wasp/out/web-app/node_modules/esbuild/lib/main.js:1316:45) [ Client!] at buildResponseToResult (/Users/nic/MerchantLens/.wasp/out/web-app/node_modules/esbuild/lib/main.js:943:7) [ Client!] at /Users/nic/MerchantLens/.wasp/out/web-app/node_modules/esbuild/lib/main.js:970:16 [ Client!] at responseCallbacks.<computed> (/Users/nic/MerchantLens/.wasp/out/web-app/node_modules/esbuild/lib/main.js:622:9) [ Client!] at handleIncomingPacket (/Users/nic/MerchantLens/.wasp/out/web-app/node_modules/esbuild/lib/main.js:677:12) [ Client!] at Socket.readFromStdout (/Users/nic/MerchantLens/.wasp/out/web-app/node_modules/esbuild/lib/main.js:600:7) [ Client!] at Socket.
8 replies
BBuildShip
Created by nicop on 9/21/2024 in #❓・buildship-help
Stripe Webhook Signature
I am sending stripe webhooks to a buildship workflow that will update my DB with webhook events. The code continually fails with an error as follows: Error: Webhook payload must be provided as a string or a Buffer (https://nodejs.org/api/buffer.html) instance representing the raw request body.Payload was provided as a parsed JavaScript object instead. Signature verification is impossible without access to the original signed material. Learn more about webhook signing and explore webhook integration examples for various frameworks at https://github.com/stripe/stripe-node#webhook-signing No matter what changes I make to my code to try and send it as raw body, I cannot get it to work in BS. Can anyone look at my code and let me know if there is anything glaringly obvious, or if it simply cannot be done?
4 replies