-
-
Notifications
You must be signed in to change notification settings - Fork 184
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
Module not found: Can't resolve 'v8' #836
Comments
I'm also facing this issue with |
First, create // babel.config.js
module.exports = {
presets: ['next/babel'],
plugins: ['macros'],
} Then remove // src/app/layout.js
import GlobalStyles from '../styles/GlobalStyles'
import StyledComponentsRegistry from '../lib/registry'
export const metadata = {
title: 'Create Next App',
description: 'Generated by create next app',
}
export default function RootLayout({ children }) {
return (
<html lang="en">
<body>
<StyledComponentsRegistry>
<GlobalStyles />
{children}
</StyledComponentsRegistry>
</body>
</html>
)
} The above resolved the issue for me. For more on why we have to remove |
Hi @kon-pas, thanks for solution. I'm having a problem after placing your solution. this is the error: ⨯ ./src/app/[locale]/(pages)/page.tsx:25:36
Syntax error: Unexpected token, expected ","
23 | import ContactSection from "./contact.sect";
24 |
> 25 | export default function Home(request: {
| ^
26 | params: { locale: "id" | "en" };
27 | searchParams: {
28 | changeLang?: "true" | "false"; I guess that this issue may related into my issue. When i delete the babel config, it works BUT the v8 errors come up. |
I am getting
Module not found: Can't resolve 'v8'
while using the package in Nextjs with Typescript.If I use
.js
file, then it's working fine, If I use.tsx
file then it throwsModule Not found
error. Even after installing this package, Further packages start reporting issues of missing.Here's very simple code block which I am using and still it's not working.
Here's the package info -
Here's withTwin config -
Here's the issue I am facing -
The text was updated successfully, but these errors were encountered: