You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After cloning the repo and runnng yarn dev, I get this error
'''
Re-optimizing dependencies because lockfile has changed
VITE v5.2.12 ready in 317 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h + enter to show help
✘ [ERROR] Could not resolve "lodash"
node_modules/@kaiachain/kaia-design-system/dist/index.esm.js:1:213:
1 │ ...ct as s,cloneElement as u}from"react";import f from"lodash";function d(e,n){(null==n||n>e.length)&&(n=e.length...
╵ ~~~~~~~~
The Yarn Plug'n'Play manifest forbids importing "lodash" here because it's not listed as a
dependency of this package:
You can mark the path "lodash" as external to exclude it from the bundle, which will remove this
error and leave the unresolved path in the bundle.
/Users/bashir/Documents/kaia-design-system/example/node_modules/esbuild/lib/main.js:1651
let error = new Error(text);
^
Error: Build failed with 1 error:
node_modules/@kaiachain/kaia-design-system/dist/index.esm.js:1:213: ERROR: Could not resolve "lodash"
at failureErrorWithLog (/Users/bashir/Documents/kaia-design-system/example/node_modules/esbuild/lib/main.js:1651:15)
at /Users/bashir/Documents/kaia-design-system/example/node_modules/esbuild/lib/main.js:1059:25
at /Users/bashir/Documents/kaia-design-system/example/node_modules/esbuild/lib/main.js:1527:9
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
errors: [Getter/Setter],
warnings: [Getter/Setter]
}
'''
kindly look into this
Thanks
The text was updated successfully, but these errors were encountered:
Please try again using the latest version, v1.0.6.
Also, make sure that the commands in the ReadMe, such as yarn install and yarn link, have been executed correctly.
Previously, lodash was being referenced through hoisting by another library (babel-plugin-lodash). Depending on the local environment, this could lead to either normal functionality or the issue you reported. To prevent this and ensure consistent behavior, we have explicitly added lodash to the dependencies, resolving the issue.
After cloning the repo and runnng yarn dev, I get this error
'''
Re-optimizing dependencies because lockfile has changed
VITE v5.2.12 ready in 317 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h + enter to show help
✘ [ERROR] Could not resolve "lodash"
The Yarn Plug'n'Play manifest forbids importing "lodash" here because it's not listed as a
dependency of this package:
You can mark the path "lodash" as external to exclude it from the bundle, which will remove this
error and leave the unresolved path in the bundle.
/Users/bashir/Documents/kaia-design-system/example/node_modules/esbuild/lib/main.js:1651
let error = new Error(text);
^
Error: Build failed with 1 error:
node_modules/@kaiachain/kaia-design-system/dist/index.esm.js:1:213: ERROR: Could not resolve "lodash"
at failureErrorWithLog (/Users/bashir/Documents/kaia-design-system/example/node_modules/esbuild/lib/main.js:1651:15)
at /Users/bashir/Documents/kaia-design-system/example/node_modules/esbuild/lib/main.js:1059:25
at /Users/bashir/Documents/kaia-design-system/example/node_modules/esbuild/lib/main.js:1527:9
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
errors: [Getter/Setter],
warnings: [Getter/Setter]
}
'''
kindly look into this
Thanks
The text was updated successfully, but these errors were encountered: