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

Creating token with metaplex causing bug with webpack #249

Open
The-x-35 opened this issue Jan 29, 2025 · 6 comments
Open

Creating token with metaplex causing bug with webpack #249

The-x-35 opened this issue Jan 29, 2025 · 6 comments
Labels
bug Something isn't working

Comments

@The-x-35
Copy link
Contributor

Describe the bug
While trying to launch a token with metaplex on webpack shows error of fs and os dependencies not found, even when they are added. This seems to be an issue with webpack only and ignoring them wont work.

To Reproduce
Steps to reproduce the behavior:
try to launch a token with metaplex on webpack on a browser.

Expected behavior
I expected it to launch token.

Screenshots
NA

Additional context
NA

@The-x-35 The-x-35 added the bug Something isn't working label Jan 29, 2025
@michaelessiet
Copy link
Collaborator

Hi @The-x-35 , please can you share a SS of the error messages you're getting. I would like to pinpoint the particular metaplex package causing the error

@The-x-35
Copy link
Contributor Author

The-x-35 commented Feb 1, 2025

@michaelessiet its not really a metaplex error but fs and os modules dont work well with webpack
u can check the issue here
https://stackoverflow.com/questions/39249237/node-cannot-find-module-fs-when-using-webpack/51669301#51669301

we cant really ignore them as then the metaplex wont work.

@michaelessiet
Copy link
Collaborator

I'm assuming that metaplex isn't compatible on the web/browser then? fs and os are nodejs primitives and are not available in the browser unless through polyfills

@The-x-35
Copy link
Contributor Author

The-x-35 commented Feb 3, 2025

@michaelessiet Yes sir you are correct. We need to find a way to deploy tokens without them.

@michaelessiet
Copy link
Collaborator

Alright. Will take this up after our plugin architecture migration

@The-x-35
Copy link
Contributor Author

The-x-35 commented Feb 4, 2025

@michaelessiet yeah sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants