-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
Can't use this library with Next.js using a next.config.mjs
file
#140
Comments
I've created an issue for this in next-remove-imports. |
RobotSail
changed the title
Can't use this library with Next.js
Can't use this library with Next.js using a Feb 20, 2023
next.config.mjs
file
import removeImports from 'next-remove-imports'
const removeImportsFun = removeImports({
options: { },
})
export default removeImportsFun({
reactStrictMode: true,
i18n: {
locales: ["en"],
defaultLocale: "en",
},
}) |
@jaywcjlove Thanks! I tried using
|
In case of Next.js, adding |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to use this with a
next.config.mjs
file and am probably using this incorrectly. The issue I'm running into is that there is no place for me to pass my existingNextConfig
as an argument intoremoveImports
, since the signature looks like:I've tried instead to merge the output from
removeImports
with my initialized config, but that didn't seem to have any effect:This must be the case of me doing something incorrectly, but it's blocking my ability to use this package.
The text was updated successfully, but these errors were encountered: