radash icon indicating copy to clipboard operation
radash copied to clipboard

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

Open Zian502 opened this issue 1 year ago • 4 comments

/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 avatar Aug 05 '24 09:08 Zian502

/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)

Zian502 avatar Aug 05 '24 09:08 Zian502

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

ericisgoodboy avatar Aug 07 '24 06:08 ericisgoodboy

Same problem with CRA and react 17

ayrtonlacerda avatar Aug 14 '24 13:08 ayrtonlacerda

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. :v:

aleclarson avatar Aug 14 '24 21:08 aleclarson