Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error was reported in the dev environment in the webpack project #421

Open
Zian502 opened this issue Aug 5, 2024 · 4 comments
Open

Comments

@Zian502
Copy link

Zian502 commented Aug 5, 2024

/Users/zian/workspace/Zcy/Infra/Projects/qiankun/node_modules/radash/dist/esm/object.mjs 137:20 Module parse failed: Unexpected token (137:20) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | const assign = (initial, override) => { | if (!initial || !override) > return initial ?? override ?? {}; | return Object.entries({ ...initial, ...override }).reduce( | (acc, [key, value]) => {

@Zian502
Copy link
Author

Zian502 commented Aug 5, 2024

/Users/zian/workspace/Zcy/Infra/Projects/qiankun/node_modules/radash/dist/esm/random.mjs 19:9-16
Can't import the named export 'iterate' from non EcmaScript module (only default export is available)

@ericisgoodboy
Copy link

The same problem occurred, importing {debounce} from 'radash' in the vue2 environment; Importing will result in an error

@ayrtonlacerda
Copy link

Same problem with CRA and react 17

@aleclarson
Copy link

Hey everyone, try using radashi@beta (an actively maintained fork) and see if it helps. Please open an issue over at the Radashi repository if the issue persists. Preferably, you could include a reproduction, but it's not a strict requirement (any signal is appreciated). But I will say that a reproduction will greatly increase the chances of a swift resolution. ✌️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants