Skip to content
This repository has been archived by the owner on Feb 3, 2024. It is now read-only.

next/head module not found #10

Open
msglab opened this issue Feb 23, 2022 · 0 comments
Open

next/head module not found #10

msglab opened this issue Feb 23, 2022 · 0 comments

Comments

@msglab
Copy link

msglab commented Feb 23, 2022

I am using: "next-plugin-perfect-dark-mode"
and when I add:

import Head from 'next/head'
import { InjectPerfectDarkMode } from 'next-plugin-perfect-dark-mode'

to my pages/index.js I get this error:

> Build error occurred
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '\frontend\node_modules\next\head' imported from \frontend\node_modules\next-plugin-perfect-dark-mode\dist\index.js
Did you mean to import next/head.js?
    at new NodeError (node:internal/errors:371:5)
    at finalizeResolution (node:internal/modules/esm/resolve:416:11)
    at moduleResolve (node:internal/modules/esm/resolve:932:10)
    at defaultResolve (node:internal/modules/esm/resolve:1044:11)
    at ESMLoader.resolve (node:internal/modules/esm/loader:422:30)
    at ESMLoader.getModuleJob (node:internal/modules/esm/loader:222:40)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:76:40)
    at link (node:internal/modules/esm/module_job:75:36) {
  type: 'Error',
  code: 'ERR_MODULE_NOT_FOUND'
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant