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

Unhandled Runtime Error Error: The programmatic API was removed in npm v8.0.0 #358

Open
2 tasks
masnoonJunaid opened this issue Apr 7, 2024 · 0 comments
Open
2 tasks
Assignees

Comments

@masnoonJunaid
Copy link

Getting above error with sunEditor while using with nextjs
A clear and concise description of what the bug is.

  • suneditor

  • This repository

    node version : v20.10.0
    npm version: 10.2.3
    nextjs version: ^14.1.4,

here is the complete log

Unhandled Runtime Error
Error: The programmatic API was removed in npm v8.0.0

Call Stack
eval
(app-pages-browser)/node_modules/npm/index.js (4:0)
(app-pages-browser)/./node_modules/npm/index.js
file:///Users/....../Desktop/.next/static/chunks/_app-pages-browser_src_components_campusComponents_sunEditor_js.js (35:1)
options.factory
file:///Users/Desktop/Startups/.next/static/chunks/webpack.js (716:31)
webpack_require
file:///Users/.next/static/chunks/webpack.js (37:33)
fn
file:///Users/.next/static/chunks/webpack.js (371:21)
eval
(app-pages-browser)/./src/components/campusComponents/sunEditor.js (8:61)
(app-pages-browser)/./src/components/campusComponents/sunEditor.js
file:///Users/.next/static/chunks/_app-pages-browser_src_components_campusComponents_sunEditor_js.js (77:1)
options.factory
file:///Users/.next/static/chunks/webpack.js (716:31)
webpack_require
file:///Users/.next/static/chunks/webpack.js (37:33)
Function.fn
file:///Users/.next/static/chunks/webpack.js (371:21)
Screenshots
If applicable, add screenshots to help explain your problem.

Code Sandbox Demo
A code sandbox demo to demonstrate the problem to convince us of the issue

Desktop (please complete the following information):

  • OS: [e.g. iOS] : mac os
  • Browser [e.g. chrome, safari] : Chrome
  • Version [e.g. 22] : 3.6.1

Additional context
Add any other context about the problem here.

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

2 participants