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
Github Action production build fail at 'Creating an optimized production build' stage -> TypeError: processor is not a function #35267
Comments
Im getting this issue too! been scrambling around trying to figure this out but nothing is working! |
It's same for me (macOS). I think one of nextjs' dependencies has updated and now there is a version mismatch somewhere (https://github.com/Timer/cssnano-simple/releases/tag/v3.0.1 ?)
|
So I think the issue is that Seems like it should be fixed in master already #35258 |
@wasd171 What do you mean by 'pinned'? How can i fix this |
Im having the same issue with next@11.
|
Add resolutions key to your package.json and put cssnano-preset-simple inside that should fix the problem
|
This worked, thanks!! 🚀 |
Thank you, this worked! |
This solution, working fine. Thanks. |
Somehow it didn't work at first but after relaunching the action a couple of times, it did. |
…' stage -> TypeError: processor is not a function vercel/next.js#35267
…TypeError: processor is not a function vercel/next.js#35267
Have the same issue while packaging the image with docker FROM node:14-alpine. # Install dependencies only when needed
FROM node:14-alpine AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat
WORKDIR /app
COPY src/package.json ./
RUN yarn install --frozen-lockfile
# Rebuild the source code only when needed
FROM node:14-alpine AS builder
WORKDIR /app
COPY ./src .
COPY --from=deps /app/node_modules ./node_modules
RUN yarn build Error detail:
|
The original issue was probably caused by @fanshaohua-fan your issue seems to be unrelated, could you open a new issue with ac complete reproduction? |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
Github Actions env
Environment: ubuntu-20.04
Version: 20220227.1
What browser are you using? (if relevant)
N/A
How are you deploying your application? (if relevant)
Github actions
Describe the Bug
With Next.js v11.1.3
Github Action production build fail at 'Creating an optimized production build' stage.
TypeError: processor is not a function
While this error happens in Github actions, there is not a single error in my local env when I run the next build command.
Here is the full log of Github action error:
https://github.com/beumsk/beumsk.github.io/runs/5513878505?check_suite_focus=true
`> rb@1.1.0 build /home/runner/work/beumsk.github.io/beumsk.github.io
info - Using webpack 4. Reason: webpack5 flag is set to false in next.config.js https://nextjs.org/docs/messages/webpack5
info - Checking validity of types...
info - Creating an optimized production build...
Failed to compile.
TypeError: processor is not a function
npm ERR! A complete log of this run can be found in:
npm ERR! /home/runner/.npm/_logs/2022-03-11T16_29_05_627Z-debug.log
Error: Process completed with exit code 1.`
Expected Behavior
The production build should work as it does in my local env.
To Reproduce
It must have something to with Ubuntu I guess since that's what Github action uses and I'm not.
However I really don't see what could cause it and the error isn't helpful to me.
I don't know how you can reproduce the issue since it happens with ubuntu.
The text was updated successfully, but these errors were encountered: