Git Product home page Git Product logo

Comments (9)

avoc-ado avatar avoc-ado commented on June 1, 2024

I also have the issue with @solana/[email protected] when running next dev. There are no compile errors

from wallet-adapter.

LanPRD avatar LanPRD commented on June 1, 2024

I was using [email protected]. Some dependencies in "@Particle-Network" were not installed... But I have other project with @solana/wallet-adapter-wallets and in this project I never had any problems and in node_modules the dependencies was installed successfully. So I tried updated vite, now [email protected]. The errors had to happen, but now, different...

To solve my issues I needed install nodePolyfills and change my vite.config.ts.

vite.config.ts
export default defineConfig({ optimizeDeps: { exclude: ["@particle-network"] }, build: { rollupOptions: { external: ["@particle-network/auth"] } }, define: { globalThis: "window" }, resolve: { alias: { process: "process/browser", util: "util" } }, plugins: [ react(), svgr({ include: "**/*.svg?react", exclude: "", svgrOptions: { // svgr options } }), nodePolyfills() ] });

In my case, I needed to remove this line from my project too:
window.Buffer = Buffer

from wallet-adapter.

tolgaand avatar tolgaand commented on June 1, 2024

i'm using [email protected], same issue.

from wallet-adapter.

lukecaan avatar lukecaan commented on June 1, 2024

Anyone know a quick way to get things building locally again? Just go back to an old version of the library before particle-network got added?

Edit: yeah ok looks like just going back to 0.19.24 fixed it

from wallet-adapter.

ez-krk avatar ez-krk commented on June 1, 2024

same issue, rolling back to 0.19.24 didn't helped for me.

from wallet-adapter.

tolgaand avatar tolgaand commented on June 1, 2024
/** @type {import('next').NextConfig} */
const nextConfig = {
  reactStrictMode: false,
  webpack: (config, { isServer }) => {
    if (!isServer) {
      config.externals.push("@particle-network/auth");
    }
    return config;
  }
};

module.exports = nextConfig;

fixed for me(using next)

from wallet-adapter.

jordaaash avatar jordaaash commented on June 1, 2024

Sorry about the workarounds here. I'm pushing to get this fixed.

from wallet-adapter.

jordaaash avatar jordaaash commented on June 1, 2024

This should be fixed via #891

from wallet-adapter.

jordaaash avatar jordaaash commented on June 1, 2024

Released via #890.

Please update to the latest version of the @solana/wallet-adapter-wallets (^0.19.26) which includes an updated package for the Particle adapter, and try to install and build again.

Let me know if it works or doesn't!

from wallet-adapter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.