vercel / next.js

The React Framework
https://nextjs.org
MIT License
126.99k stars 26.99k forks source link

Refused to apply style from '/_next/static/css/336e4aea61098b4e.css' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. #70220

Closed ALFAMAS closed 1 month ago

ALFAMAS commented 1 month ago

Link to the code that reproduces this issue

none

To Reproduce

  1. Push server to GitHub using CI/CD after auto build the problem occurs

Current vs. Expected behavior

doesn't load the webpage, was working 2 days ago

Provide environment information

Operating System:
   Platform: Ubuntu (Jammy)
   Arch: AMD64
   Version: Ubuntu 22.04.4 LTS
Binaries:
   Node: 20.17.0
   npm: 10.8.2
Package.JSON:
"dependencies": {
    "@next/bundle-analyzer": "^14.2.12",
    "@next/third-parties": "14.2.12",
    "@nextui-org/react": "^2.4.6",
    "@radix-ui/react-accordion": "^1.2.0",
    "@radix-ui/react-alert-dialog": "^1.1.1",
    "@radix-ui/react-aspect-ratio": "^1.1.0",
    "@radix-ui/react-avatar": "^1.1.0",
    "@radix-ui/react-checkbox": "^1.1.1",
    "@radix-ui/react-collapsible": "^1.1.0",
    "@radix-ui/react-context-menu": "^2.2.1",
    "@radix-ui/react-dialog": "^1.1.1",
    "@radix-ui/react-dropdown-menu": "^2.1.1",
    "@radix-ui/react-hover-card": "^1.1.1",
    "@radix-ui/react-icons": "^1.3.0",
    "@radix-ui/react-label": "^2.1.0",
    "@radix-ui/react-menubar": "^1.1.1",
    "@radix-ui/react-navigation-menu": "^1.2.0",
    "@radix-ui/react-popover": "^1.1.1",
    "@radix-ui/react-progress": "^1.1.0",
    "@radix-ui/react-radio-group": "^1.2.0",
    "@radix-ui/react-scroll-area": "^1.1.0",
    "@radix-ui/react-select": "^2.1.1",
    "@radix-ui/react-separator": "^1.1.0",
    "@radix-ui/react-slider": "^1.2.0",
    "@radix-ui/react-slot": "^1.1.0",
    "@radix-ui/react-switch": "^1.1.0",
    "@radix-ui/react-tabs": "^1.1.0",
    "@radix-ui/react-toast": "^1.2.1",
    "@radix-ui/react-toggle": "^1.1.0",
    "@radix-ui/react-toggle-group": "^1.1.0",
    "@radix-ui/react-tooltip": "^1.1.2",
    "@react-pdf-viewer/core": "^3.12.0",
    "@react-pdf-viewer/default-layout": "^3.12.0",
    "@reduxjs/toolkit": "^2.2.7",
    "@semantic-release/changelog": "^6.0.3",
    "@semantic-release/commit-analyzer": "12.0.0",
    "@semantic-release/git": "^10.0.1",
    "@semantic-release/github": "^10.0.5",
    "@semantic-release/npm": "^12.0.1",
    "@semantic-release/release-notes-generator": "^13.0.0",
    "@serwist/next": "^9.0.7",
    "@serwist/precaching": "^9.0.7",
    "@serwist/sw": "^9.0.7",
    "@t3-oss/env-nextjs": "^0.10.1",
    "@vercel/otel": "1.8.3",
    "axios": "^1.7.7",
    "class-variance-authority": "^0.7.0",
    "clsx": "^2.1.1",
    "cmdk": "1.0.0",
    "date-fns": "^3.6.0",
    "dayjs": "^1.11.13",
    "embla-carousel-react": "^8.2.1",
    "framer-motion": "^11.5.4",
    "input-otp": "^1.2.4",
    "jodit-react": "^4.1.2",
    "js-cookie": "^3.0.5",
    "lodash": "^4.17.21",
    "lucide-react": "^0.439.0",
    "next": "14.2.12",
    "next-compose-plugins": "^2.2.1",
    "next-themes": "^0.3.0",
    "nextjs-google-analytics": "^2.3.7",
    "pdfjs-dist": "^3.4.120",
    "react": "^18.3.1",
    "react-day-picker": "8.10.1",
    "react-dom": "^18.3.1",
    "react-fast-marquee": "^1.6.5",
    "react-hook-form": "^7.53.0",
    "react-icons": "^5.3.0",
    "react-redux": "^9.1.2",
    "react-resizable-panels": "^2.1.2",
    "react-top-loading-bar": "^2.3.1",
    "recharts": "^2.12.7",
    "sharp": "^0.33.5",
    "sonner": "^1.5.0",
    "swiper": "^11.1.12",
    "tailwind-merge": "^2.5.2",
    "tailwindcss-animate": "^1.0.7",
    "vaul": "^0.9.2",
    "zod": "^3.23.8"
  },
  "devDependencies": {
    "@builder.io/partytown": "^0.10.2",
    "@jest/globals": "^29.7.0",
    "@opentelemetry/api": "1.7.0",
    "@opentelemetry/resources": "^1.19.0",
    "@opentelemetry/sdk-node": "0.45.1",
    "@opentelemetry/sdk-trace-node": "1.18.1",
    "@opentelemetry/semantic-conventions": "1.18.1",
    "@playwright/test": "^1.40.0",
    "@storybook/addon-essentials": "^7.5.3",
    "@storybook/addon-interactions": "^7.5.3",
    "@storybook/addon-links": "^7.5.3",
    "@storybook/blocks": "^7.5.3",
    "@storybook/nextjs": "^7.5.3",
    "@storybook/react": "^7.5.3",
    "@storybook/test-runner": "^0.19.1",
    "@storybook/testing-library": "^0.2.2",
    "@svgr/webpack": "^8.1.0",
    "@tailwindcss/aspect-ratio": "^0.4.2",
    "@tailwindcss/forms": "^0.5.9",
    "@tailwindcss/line-clamp": "^0.4.4",
    "@tailwindcss/typography": "^0.5.15",
    "@testing-library/jest-dom": "^6.1.4",
    "@testing-library/react": "^14.1.2",
    "@total-typescript/ts-reset": "^0.5.1",
    "@types/jest": "^29.5.10",
    "@types/js-cookie": "^3.0.6",
    "@types/lodash": "^4.17.7",
    "@types/node": "^20.12.13",
    "@types/react": "^18.3.3",
    "@types/react-dom": "^18.3.0",
    "@typescript-eslint/eslint-plugin": "^6.12.0",
    "@typescript-eslint/parser": "^6.12.0",
    "all-contributors-cli": "^6.26.1",
    "autoprefixer": "^10.4.16",
    "cross-env": "^7.0.3",
    "eslint": "8.54.0",
    "eslint-config-next": "14.0.3",
    "eslint-config-prettier": "^9.0.0",
    "eslint-config-react-app": "^7.0.1",
    "eslint-plugin-import": "^2.29.0",
    "eslint-plugin-react": "7.33.2",
    "eslint-plugin-storybook": "^0.6.15",
    "eslint-plugin-tailwindcss": "^3.13.0",
    "gzip-size": "6.0.0",
    "jest": "^29.7.0",
    "jest-environment-jsdom": "^29.7.0",
    "mkdirp": "^3.0.1",
    "patch-package": "^8.0.0",
    "postcss": "^8.4.31",
    "postinstall-postinstall": "^2.1.0",
    "prettier": "3.0.3",
    "prettier-plugin-tailwindcss": "^0.5.7",
    "raw-loader": "^4.0.2",
    "semantic-release": "^22.0.8",
    "serwist": "^9.0.7",
    "storybook": "^7.5.3",
    "tailwindcss": "^3.3.5",
    "ts-jest": "^29.1.1",
    "tsc": "^2.0.4",
    "typescript": "5.6.2",
    "webpack": "^5.94.0"
  },
  "engines": {
    "node": ">=20.0.0"
  }

Which area(s) are affected? (Select all that apply)

Not sure, Developer Experience

Which stage(s) are affected? (Select all that apply)

Other (Deployed)

Additional context

It was working 2 days ago but now its not working

Refused to execute script from '' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/webpack-668eb7c2f90cd37b.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/fd9d1056-b8d013ca0aabfbda.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/2275-7aa080eba1f32f24.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/f8e4659f-09e69d96bfec8875.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/2427-19e524b2a48742cf.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/231-4e3a8e82645a52e6.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/6648-8cde30fe3f9e39f0.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/7776-f5580ce1f5927d4c.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/1789-a1a9be3fee7e0019.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/5510-d44c57bd8a4ff8a6.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/7534-75083525f78672a7.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/469-ebfd6368260c17ed.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/4816-c40ede605d792b91.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/7649-4559f278df607972.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/1473-4e4e265ddc192ed8.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/9363-eacf5bff526ddb4b.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/659-9dc0a71c56b91fc3.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/7681-c935da9904616939.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/3074-d82e3cb1e6ee05d5.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/6523-9a578a62d832f9ab.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/7306-a4be397d3511c235.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/9385-8373f9b17d3810aa.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/7854-f848310189c636f5.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/app/layout-21cb6592362e61f5.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/3343-77f7709b57662f75.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/app/not-found-800ef22dbd4bae74.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/1514-cacb3b666f3f4391.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/1836-529aa14fb4d8f542.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/5237-0f0dc17131bcf50c.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/2467-2b9552bb76765dde.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/7301-3992d8da81629916.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/app/page-4e7fe99364bd0a53.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/3186-afbbd7698006a1df.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/2201-d544660c624852b5.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.Understand this error mnhb.org/:1 Refused to execute script from 'https://mnhb.org/_next/static/chunks/app/error-fd7d5956f55d4f24.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

github-actions[bot] commented 1 month ago

We could not detect a valid reproduction link. Make sure to follow the bug report template carefully.

Why was this issue closed?

To be able to investigate, we need access to a reproduction to identify what triggered the issue. We need a link to a public GitHub repository (template for App Router, template for Pages Router), but you can also use these templates: CodeSandbox: App Router or CodeSandbox: Pages Router.

The bug template that you filled out has a section called "Link to the code that reproduces this issue", which is where you should provide the link to the reproduction.

What should I do?

Depending on the reason the issue was closed, you can do the following:

In general, assume that we should not go through a lengthy onboarding process at your company code only to be able to verify an issue.

My repository is private and cannot make it public

In most cases, a private repo will not be a sufficient minimal reproduction, as this codebase might contain a lot of unrelated parts that would make our investigation take longer. Please do not make it public. Instead, create a new repository using the templates above, adding the relevant code to reproduce the issue. Common things to look out for:

I did not open this issue, but it is relevant to me, what can I do to help?

Anyone experiencing the same issue is welcome to provide a minimal reproduction following the above steps by opening a new issue.

I think my reproduction is good enough, why aren't you looking into it quickly?

We look into every Next.js issue and constantly monitor open issues for new comments.

However, sometimes we might miss one or two due to the popularity/high traffic of the repository. We apologize, and kindly ask you to refrain from tagging core maintainers, as that will usually not result in increased priority.

Upvoting issues to show your interest will help us prioritize and address them as quickly as possible. That said, every issue is important to us, and if an issue gets closed by accident, we encourage you to open a new one linking to the old issue and we will look into it.

Useful Resources