I have an <umijs->based react application, I tried...
# ask-questions
j
I have an umijs-based react application, I tried to set up the growthbook tool in our app, but it gives me a few errors and crashes.
Copy code
ERROR in ./node_modules/@growthbook/growthbook/dist/esm/index.mjs 2:0-63
Can't reexport the named export 'GrowthBook' from non EcmaScript module (only default export is available)
 @ ./src/layouts/index.tsx
 @ ./src/.umi/core/routes.ts
 @ ./src/.umi/umi.ts
 @ multi ./node_modules/umi/node_modules/@umijs/preset-built-in/bundled/@pmmmwh/react-refresh-webpack-plugin/client/ReactRefreshEntry.js ./src/.umi/umi.ts
Does anyone used Umijs with growthbook, can anyone help me with this?
f
I don't have experience with Umijs.
You could try creating a webpack.config.js
j
👍