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

Could not resolve "@coral-xyz/borsh" #14

Open
ExorTek opened this issue Apr 25, 2024 · 0 comments
Open

Could not resolve "@coral-xyz/borsh" #14

ExorTek opened this issue Apr 25, 2024 · 0 comments

Comments

@ExorTek
Copy link

ExorTek commented Apr 25, 2024

Vite + React Project

X [ERROR] Could not resolve "@coral-xyz/borsh"

    node_modules/@coral-xyz/spl-token/dist/browser/index.js:1:363:
      1 │ ...rom"bs58";import*as d from"base64-js";import h from"camelcase";import{sha256 as f}from"js-sha256";import*as p from"@coral-xyz/borsh";import{inflate as m}from"pako";import y from"eventemitter3";import*as g from"assert";const w=t=>"version"in t;fu...
        ╵                                                                                                                      

  You can mark the path "@coral-xyz/borsh" as external to exclude it from the bundle, which will
  remove this error and leave the unresolved path in the bundle.

  \node_modules\esbuild\lib\main.js:1651
  let error = new Error(text);
              ^

Error: Build failed with 1 error:
node_modules/@coral-xyz/spl-token/dist/browser/index.js:1:363: ERROR: Could not resolve "@coral-xyz/borsh"
    at failureErrorWithLog (\node_modules\esbuild\lib\main.js:1651:15)
    at \node_modules\esbuild\lib\main.js:1059:25
    at \node_modules\esbuild\lib\main.js:1527:9
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  errors: [Getter/Setter],
  warnings: [Getter/Setter]
}

Node.js v20.12.1

Also, why don't you have any documents?

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

1 participant