Skip to content

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

@envoy1084

Description

@envoy1084

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions