Hi GB team, We are really keen to integrate Growt...
# ask-questions
Hi GB team, We are really keen to integrate Growthbook into our company’s products. One of our product is made with Sveltekit. I am wondering is there any way to integrate this into Sveltekit framework. I’ve tried 2 different ways but getting the following error each time. It would be great if any one of you can share the steps or point out any resources online. Thanks 👍
Copy code
[vite] Error when evaluating SSR module /src/growthbook.ts: failed to import "@growthbook/growthbook"
|- /Users/shamscorner/Projects/secureship/secureshipv2/node_modules/@growthbook/growthbook/dist/esm/index.js:1
export { setPolyfills, clearCache, configureCache, helpers, onVisible, onHidden } from "./feature-repository";

SyntaxError: Unexpected token 'export'
    at internalCompileFunction (node:internal/vm:77:18)
    at wrapSafe (node:internal/modules/cjs/loader:1288:20)
    at Module._compile (node:internal/modules/cjs/loader:1340:27)
    at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
    at Module.load (node:internal/modules/cjs/loader:1207:32)
    at Module._load (node:internal/modules/cjs/loader:1023:12)
    at cjsLoader (node:internal/modules/esm/translators:356:17)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:305:7)
    at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
    at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
Hi Shamim
I can check with the team
Hi Graham, hope you are doing great. That would be awesome.