Hello everyone, I'm trying to integrate GrowthBook...
# ask-questions
a
Hello everyone, I'm trying to integrate GrowthBook with the Astro framework, and I've run into an SDK error regarding an unexpected token 'export'.
f
where are you seeing that error?
a
The error is a 'SyntaxError: Unexpected token 'export,'' which I believe is related to ES modules. I am trying to fix this by adding
"type": "module"
to the GrowthBook
package.json
and modifying some import code in the
node_modules
, and it now works. Are there any other solutions I can try to fix this issue?
f
We can check with the team
a bit outside of my expertise
a
Thank you; I appreciate it. For more information, I am using Node.js version v20.10.0 with 'pnpm'.