-
Notifications
You must be signed in to change notification settings - Fork 26k
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
[webpack.cache.PackFileCacheStrategy] error when using next.config.mjs
#33693
Comments
see #30870 (comment) for a tip how to silence the warnings. |
@stefanprobst thank for the tip! Will silence them until it is resolved. |
next.config.mjs
next.config.mjs
Webpack does this outside of |
There is webpack/webpack#14645 |
- webpack/webpack#14645 (reply in thread) I hope a Next.js update will raise the Webpack version to fix this 🙏 |
This is still an issue in webpack 5.70, fwiw, so updating webpack won't help |
Im getting |
this should be solved in webpack/webpack#15611 |
I'm just working on implementing next.js in my project (coming from create-react-app) and I'm seeing this everywhere in my project. Running latest next.js (13.x.x) and whatever version of webpack that pulls in. Could this be why I see some components not receiving their dynamic styles from Material UI's dynamic in-code styles -- export default function MyComponent() {
const theme = useTheme()
const styles = (theme: Theme) => ({
FooStyle: {
backgroundColor: 'white' // normally dark
color: 'black' // normally white, dark mode
}
})
const classes = styles(theme)
return (
<Box sx={{classes.FooStyle}}>Test Test</Box>
)
} In my code this yields a white box with white text. It works with the create-react-app framework I'm coming from, for what its worth. |
This suppresses a ton of erroneous warnings. See vercel/next.js#33693 and vercel/next.js#27650.
hey is this issue got fixed i guess not because I'm still seeing this same error in my next js 13.4.9 app |
@PaisaDekho I also got this issue all of a sudden while developing my app, right after installing some packages related to authentication. Solved by killing the dev server, deleting the |
In my case, removing the |
This comment was marked as spam.
This comment was marked as spam.
Hey @vegandiet705 i tried removing the .next folder and then again building the project but was unable to solve the issue |
* fix: loading next.config.mjs if needed * fix: init output for esm next.config.mjs * fix: webpack dynamic import warning related vercel/next.js#33693
@Asish-AP Any luck? Having same issue. |
Delete Next Folder in your app and try re-running your app, it worked for me... |
What worked for me was deleting the TS config file too, alongside the below
Ali Gajani
Founder at Mr. Geek
www.mrgeek.me
www.aligajani.com
…On Sun, Mar 3, 2024 at 4:09 PM RahulShilam ***@***.***> wrote:
@Asish-AP <https://github.com/Asish-AP> Any luck? Having same issue.
Delete Next Folder in your app and try re-running your app, it worked for
me...
—
Reply to this email directly, view it on GitHub
<#33693 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANGRWXLDGGYPCUC7ICUFX3YWNDMTAVCNFSM5M3DTTN2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJXGUZDAOBYHA4A>
.
You are receiving this because you commented.Message ID: <vercel/next.
***@***.***>
|
This is supported now so closing this! |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Run
next info
(available from version 12.0.8 and up)But can be reproduced on Vercel builds using node@14.
What version of Next.js are you using?
12.0.8
What version of Node.js are you using?
17.3.1
What browser are you using?
Server error
What operating system are you using?
macOS
How are you deploying your application?
Vercel
Describe the Bug
When using
esmodules
vianext.config.mjs
, IF config contains customwebpack
config AND IF there are some imports from thenode
system libraries likepath
orfs
, webpack will start throwing cache warnings indev
andbuild
modes.Expected Behavior
No errors in the CLI and working cache.
To Reproduce
yarn create next-app
.next.config.mjs
.Now, then you try to run the project, you will get the following warnings in the CLI:
NEXT-1395
The text was updated successfully, but these errors were encountered: