-
Notifications
You must be signed in to change notification settings - Fork 69
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
it seems that an import is missing in utils.ts #16
Comments
hey Quentin! Do you have any error/warning about it in your editor or browser? I don't think you need to install/use this package, because is not assumed to be used here. |
Yeah actually i had to import this package i had this error : Uncaught (in promise): ReferenceError: assignment to undeclared variable Buffer In my angular project |
I see, then probably quick fix will be to install
I will look into the package and will fix as well |
Same issue with utils.js for me. |
@jamland It looks the types fix doesn't work, because the error is coming from the javascript files. Here is the error in my console: Uncaught ReferenceError: Buffer is not defined |
@dino-rodriguez thank you for the note. I suppose your and other webpack might have different config, so it doesn't include Please update packages to the latest version and try again (0.10.0) |
@bayo-net looks like you have a different issue. Hard to say, but for sure you don't need to install But try to update the package anyway. |
@jamland That was totally it. I was using a workaround by adding a webpack plugin to buffer, but this is better. Thank you! It works |
Cool! Happy to help 🙂 |
I am still having same issue on 0.10.2 @jamland. I think it's webpack problem on @solana/spl-name-service package. It uses webpack v3 but my project uses v5. |
@burkarddev , Same issue with me. @jamland Please provide solution. |
the issue occurs because webpack 5 doesn't provide So far, the simplest solution will be not to use webpack 5. Additionally, here is boilerplate Next.js / React.JS template I use myself, which work well with this package and other solana tools |
Stale issue message |
Buffer is not declared
https://github.com/NftEyez/sol-rayz/blob/main/packages/sol-rayz/src/utils.ts
npm i buffer
then :
import { Buffer } from 'buffer';
The text was updated successfully, but these errors were encountered: