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 getting errors like this in many components when I try and run next build, they work fine locally. Have I missed some configuration?
The three components below are marked "use client", the middleware simply appends a querystring value.
Dynamic Code Evaluation (e. g. 'eval', 'new Function', 'WebAssembly.compile') not allowed in Edge Runtime
Learn More: https://nextjs.org/docs/messages/edge-dynamic-code-evaluation
The error was caused by importing '@nextui-org/input/dist/index.mjs' in './src/components/Input.tsx'.
Import trace for requested module:
./src/components/Input.tsx
./src/components/Form.tsx
./src/components/NavigationDrawer.tsx
./src/middlewares/settings.ts
./src/middleware.ts
"use client";
import { faEye, faEyeSlash } from "@fortawesome/pro-regular-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { InputProps, Input as InputUI } from "@nextui-org/input";
import { FC, useState } from "react";
export const Input: FC<InputProps> = (props) => {
...
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
-
I am getting errors like this in many components when I try and run
next build
, they work fine locally. Have I missed some configuration?The three components below are marked
"use client"
, the middleware simply appends a querystring value.Beta Was this translation helpful? Give feedback.
All reactions