-
Notifications
You must be signed in to change notification settings - Fork 257
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
@moralisweb3/next keeps unrelated packages to be run in runtime @solana/buffer-layout
and ethereumjs-utils
#947
Comments
@solana/buffer-layout
and ethereumjs-utils
@solana/buffer-layout
and ethereumjs-utils
@Juici why would you break Moralis by excluding dependancies when the code needs it? |
I didn't? The only contribution I have to @solana/buffer-layout is to fix a type hint. |
oh...? then who manages this repo? whoever did this, renaming an |
Why can't @solana-labs even check whether their published |
@jstarry set tsconfig.json's exclude to remove |
@ErnoW and team will check :) |
I'm looking at it. |
I cannot reproduce it. I've tested this demo outside of the SDK repo, and it seems to work properly. Even I've set your dependency list from your first post. Could you share your version of npm/yarn/node? |
For me, auth worked as well. This is because problem happens when the Moralis api interacts with interacting with Solana's web3.js library. npm version is 8.19.2 |
I don't think Moralis is related from the error. It is the @solana-labs which created the dependancy not found error. After installing dependancies regarding @solana-labs/buffer-layout, Moralis worked properly. |
We just need to wait for @jstarry to fix his typescript configuration or sever out his package. |
What operation cases this? I've added Could you download the demo and try to run it? |
Message received! Solana's happy to help here. I'll work on it with you in solana-labs/buffer-layout#5. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. for your contributions. If this issue is still affecting you, please leave any comment, and we'll keep it open We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment! Thank you. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please create a new issue with up-to-date information. Thank you! |
New Bug Report
Checklist
Issue Description
@moralisweb3/next requires two external packages to be installed in plain next.js application boilerplate. One is
ethereumjs-utils
and@solana/buffer-layout
. What's worse,@solana/buffer-layout
requires deprecated version where it asksindex.js
file to initialize the Moralis object. Newest version of@solana/buffer-layout
somehow replaced fromindex.js
toLayout.js
. This is nonsense when its package name is literally buffer-layout, but it is Solana, what do you expect. I hope @moralisweb3/next could put these packages in dev-dependancies as they should not be required to be needed in runtime at all. I am actually surprised as well Moralis team cannot handle dev dependancies on releasing package. Now I see why, you guys are using monorepo. I am forking this.Steps + code to reproduce
Follow guide in https://docs.moralis.io/authentication-api/how-to-sign-in-with-metamask?utm_source=blog&utm_medium=post&utm_campaign=How%2520to%2520Connect%2520MetaMask%2520to%2520Website%2520with%2520NextJS
Actual Outcome
Expected Outcome
This should compile without Module not found error.
Environment
Here is my related dependancies for the dapp.
Server
NOT_RELATED
Client
2.11.0
MAC OS
Google Chrome
Logs
The text was updated successfully, but these errors were encountered: