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
since nuxt@2.13.3 some modern files are missing? #7665
Comments
Hi @simllll Sorry it seems fix with 2.13.2 is back again (dot files are generated but ignored during deployment). I can do a blind patch but would be nice if you can some how share your project with me or making reproduction or giving some hints of .27*.modern.js file contents |
Thanks @pi0 for the update,
results into:
|
Alright, catching !comptactName and setting it to "default" solves the issue for me. The reasno behind it seems that a lot of chunks do not have a name, not quite sure why though. They don't even have an ID, just a debugId..
and if not a single chunk has a name the error results |
I have a similar issue, but the problem was in the default value of the build.filenames property and the dot character in the generated files' names. build: {
extractCSS: true,
filenames: {
app: ({ isDev }) => isDev ? '[name].js' : '[contenthash].js',
chunk: ({ isDev }) => isDev ? '[name].js' : '[contenthash].js',
css: ({ isDev }) => isDev ? '[name].css' : '[contenthash].css',
img: ({ isDev }) => isDev ? '[path][name].[ext]' : 'img/[contenthash:7].[ext]',
font: ({ isDev }) => isDev ? '[path][name].[ext]' : 'fonts/[contenthash:7].[ext]',
video: ({ isDev }) => isDev ? '[path][name].[ext]' : 'videos/[contenthash:7].[ext]'
}
}, Hope it helps somebody. |
Unfortunately your solution does not work for me, but the following does: filenames: {
app: ({ isModern, isDev }) =>
`${!isModern ? 'legacy-' : ''}${
!isDev ? '[contenthash]' : '[name]'
}-app.js`,
chunk: ({ isModern, isDev }) =>
`${!isModern ? 'legacy-' : ''}${
!isDev ? '[contenthash]-' : ''
}[name].js`,
}, |
Not even that is working for me anymore, whenever I try to navigate (or prefetch) to some (not every) page via
Also, sometimes it gives the same error for dynamically imported modules, for example: await apolloClient.mutate({
mutation: await import('~/graphql/mutations/SignOut.graphql'),
}) |
Thanks, this worked for me... |
Since nuxt 2.13.3 it seems our app is totally broken in modern mode.
e.g. https://cdn-test.hokify.com/pwa/company/_assets/commons/.2714f92.modern.js <-- see the commons/ followed by a dot immediately.
Browser console log:
Nuxt 2.13.2 is NOT affected by this bug as far as I can tell, as the only change from yesterday to today is the nuxt version.
Maybe it's related to #7639 ?
In another app I use a custom "filename" option for the assets, It seems this one is not affecetd by this bug, but still verifying it.
Versions
Reproduction
Couldn't find time yet, will deliver a reproducable example later if needed.
The text was updated successfully, but these errors were encountered: