You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to import an dependency from a private NPM feed.
The module installs properly, and I have confirmed the dist file in the node_modules
The @types of the module are also working fine, hence VSCode is not throwing any error. But when I try to import any of the exported method, NextJS build says the method is not exported.
I have tried runtime import, and console log the module. It returns below
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Summary
I am trying to import an dependency from a private NPM feed.
The module installs properly, and I have confirmed the dist file in the node_modules
The @types of the module are also working fine, hence VSCode is not throwing any error. But when I try to import any of the exported method, NextJS build says the method is not exported.
I have tried runtime import, and console log the module. It returns below
During lazy import, I do see the network call being made, and the webpack chunk has the dist file code from the library
Additional information
NextJS Version : 14 and 15 (tried both)
Example
No response
Beta Was this translation helpful? Give feedback.
All reactions