aidenybai / aidenybai/react-scan

0.5.0 stopped working in nextjs builds...

Open
#447 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
21.8k
Forks
390
Avg merge
23m
Merged PRs (30d)
1

Description

updated from 0.4 to 0.5.x and now our builds fail with this:

```bash
▲ Next.js 16.2.6 (webpack)
- Experiments (use with caution):
· proxyClientMaxBodySize: "60mb"
· serverActions

Creating an optimized production build ...
Failed to compile.

./node_modules/react-scan/dist/core/all-environments.mjs
Can't import the named export 'version' (imported as 'REACT_GRAB_VERSION') from default-exporting module (only default export is available)

Import trace for requested module:
./node_modules/react-scan/dist/core/all-environments.mjs
./src/common/components/ReactScan/index.tsx

./node_modules/react-scan/dist/core/all-environments.mjs
Can't import the named export 'version' (imported as 'REACT_GRAB_VERSION') from default-exporting module (only default export is available)

Import trace for requested module:
./node_modules/react-scan/dist/core/all-environments.mjs
./src/common/components/ReactScan/index.tsx

./node_modules/react-scan/dist/core/all-environments.mjs
Can't import the named export 'version' (imported as 'REACT_GRAB_VERSION') from default-exporting module (only default export is available)

Import trace for requested module:
./node_modules/react-scan/dist/core/all-environments.mjs
./src/common/components/ReactScan/index.tsx

./node_modules/react-scan/dist/core/all-environments.mjs
Can't import the named export 'version' (imported as 'REACT_GRAB_VERSION') from default-exporting module (only default export is available)

Import trace for requested module:
./node_modules/react-scan/dist/core/all-environments.mjs
./src/common/components/ReactScan/index.tsx

> Build failed because of webpack errors
Error: Process completed with exit code 1.
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.