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

[BUG] Deploy Plugin: Super constructor null of anonymous class is not a constructor #492

Open
Envoy-VC opened this issue Dec 17, 2023 · 0 comments

Comments

@Envoy-VC
Copy link

Describe the bug
Bug with Warp Deploy Plugin throwing client side errors in prod

Super constructor null of anonymous class is not a constructor at new <anonymous>

To Reproduce
Steps to reproduce the behavior.

Create a basic Nextjs Project
Try to create a new warp instance with deploy plugin and run the commands

npm run build && npm start

Expected behavior
A new warp instance should be created with Deploy Plugin

Screenshots

SCR-20231217-optt

Desktop (please complete the following information):

  • OS: Mac OS
  • Node.js version: v20.10.0
  • warp-contracts SDK version: 1.4.26
  • warp-contracts plugins being used (+ versions):
    warp-contracts-plugin-deploy: 1.0.12
  • Browser: Brave
  • Version: 1.61.101 Chromium: 120.0.6099.71

Additional context

Tried a simple workaround with webpack config and it works for now, but not sure why this error comes in the first place

In next.config.mjs add a webpack config

const config = {
    // Other config
    webpack: (config, { isServer }) => {
	if (!isServer) {
		config.optimization.innerGraph = false;
	}
	return config;
    },
}

export default config;
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