Sagar Mohanty
Sagar Mohanty

Reputation: 1

SyntaxError: The requested module 'react-popper' is expected to be of type CommonJS, which does not support named exports

click to see error

SyntaxError: The requested module 'react-popper' is expected to be of type CommonJS, which does not support named exports. CommonJS modules can be imported by importing the default export. For example: import pkg from 'react-popper'; const { Manager, Popper, Reference } = pkg;

Getting this error for a next js application and i have node version 14.6.0 but it works fine on other servers.

Upvotes: 0

Views: 977

Answers (1)

Prem Sahu
Prem Sahu

Reputation: 1

You can go with react-bootstrap , it is working fine with Next.js

Upvotes: 0

Related Questions