https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
a

adorable-minister-56906

01/12/2024, 5:05 AM
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

fresh-football-47124

01/12/2024, 5:06 AM
where are you seeing that error?
a

adorable-minister-56906

01/12/2024, 5:06 AM
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

fresh-football-47124

01/12/2024, 5:07 AM
We can check with the team
a bit outside of my expertise
a

adorable-minister-56906

01/12/2024, 5:09 AM
Thank you; I appreciate it. For more information, I am using Node.js version v20.10.0 with 'pnpm'.
3 Views