Setup issue Invalid module "next-video\process" #173
Unanswered
pat-double-u
asked this question in
Q&A
Replies: 1 comment 4 replies
-
that backslash is not right I think... could you try with the import
or
|
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Helo,
I tried to setup next-video on my new next.js project. I've created a new project, installed & init the next-video package. But I receive this error when I try to restart the next dev server. I don't know how to fix this. Can you help?
TypeError [ERR_INVALID_MODULE_SPECIFIER]: Invalid module "next-video\process" is not a valid package name imported from C:...\NextJS\yadea-app\next.config.mjs
at parsePackageName (node:internal/modules/esm/resolve:772:11)
at packageResolve (node:internal/modules/esm/resolve:795:5)
at moduleResolve (node:internal/modules/esm/resolve:901:20)
at defaultResolve (node:internal/modules/esm/resolve:1121:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
at ModuleWrap. (node:internal/modules/esm/module_job:85:39)
at link (node:internal/modules/esm/module_job:84:36) {
code: 'ERR_INVALID_MODULE_SPECIFIER'
}
Node.js v20.10.0
next.config.mjs:
import { withNextVideo } from "next-video\process";
/** @type {import('next').NextConfig} */
const nextConfig = {};
export default withNextVideo(nextConfig);
Beta Was this translation helpful? Give feedback.
All reactions