next build fails with error:
f.charCodeAt is not a function
if any of the CSS contains the following valid rule:
grid-column: span 2;
Steps to reproduce the behavior, please provide code snippets or a repository:
next buildBuilds successfully.
This was working up to [email protected]. The version after replaced an import of cssnano-simple from a local version to a npm published version. I have added additional details as an issue on that repository: https://github.com/Timer/cssnano-preset-simple/issues/6
Hey there, just adding a note here that I commented on @vukers' issue on the other repo, and I have an additional repro here. Thanks!
I got the same
f.charCodeAt is not a function error after upgrading to next 9.5.0 reverting to 9.4.4 fixed it but was trying to find a solution and thanks op for pinpointing it
I had columns: 2 auto; in my css removing which fixed it
I got the same
f.charCodeAt is not a functionerror after upgrading to next 9.5.0 reverting to 9.4.4 fixed it but was trying to find a solution and thanks op for pinpointing itI had
columns: 2 auto;in my css removing which fixed it
I think you can refactor columns: 2 auto; with the following;
column-count: 2;
column-width: auto;
This is at least how I have resolved the same problem on my side.
I got the same
f.charCodeAt is not a functionerror after upgrading to next 9.5.0 reverting to 9.4.4 fixed it but was trying to find a solution and thanks op for pinpointing it
I hadcolumns: 2 auto;in my css removing which fixed itI think you can refactor
columns: 2 auto;with the following;column-count: 2; column-width: auto;This is at least how I have resolved the same problem on my side.
Welp that does indeed fix it, weird
Thanks
+1 on this issue.
I'm using the temporary fix proposed by @4cm4k1 by adding the following to my package.json:
"resolutions": {
"cssnano-preset-simple": "1.1.1"
},
I'm using NPM so resolutions aren't available to me. I had to change my CSS to avoid this issue. I changed grid-column: span 7 to grid-column: 1 / span 7.
This is fixed in next@^9.5.2-canary.3 or newer!
Most helpful comment
This is fixed in
next@^9.5.2-canary.3or newer!