Describe the bug
It throws SyntaxError everytime I load localhost:5314.
<-- GET /
file:///home/shinwoo-park/WebstormProjects/ui-docs/dist/rsc/App.js:5
import ReactDOM, { createPortal } from 'react-dom';
^^^^^^^^^^^^
SyntaxError: Named export 'createPortal' not found. The requested module 'react-dom' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from 'react-dom';
const { createPortal } = pkg;
at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21)
at async ModuleJob.run (node:internal/modules/esm/module_job:217:5)
at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
at async file:///home/shinwoo-park/WebstormProjects/ui-docs/node_modules/.pnpm/seia.js@file+..+seia+packages+seia+seia.js-0.1.2.tgz_@types+node@20.14.2_react-dom@19.0.0-bet_3adzscgslwpexx6cukdynv7xtu/node_modules/seia.js/dist/worker.js:11:20
--> GET / 500 142ms
To Reproduce
Here is a repository I'm working on.
- Install dependencies
- Build (success without any error or warning)
- Start
- Open localhost:5314 -> Error
Expected behavior
Success with no error, or throws any error caused by react-router-dom
Desktop (please complete the following information):
- OS: Linux, Ubuntu 22
- Browser: Firefox
Describe the bug
It throws SyntaxError everytime I load localhost:5314.
To Reproduce
Here is a repository I'm working on.
Expected behavior
Success with no error, or throws any error caused by react-router-dom
Desktop (please complete the following information):