Skip to content
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

ModuleBuildError: Module build failed: UnhandledSchemeError: Reading from "data:application/x-font-ttf;charset=utf-8;; #2027

Closed
shibbir opened this issue Jul 24, 2021 · 1 comment
Labels
lang/css Anything involving CSS type/bug Any issue which is a bug or PR which fixes a bug
Milestone

Comments

@shibbir
Copy link

shibbir commented Jul 24, 2021

Bug Report

Webpack module build failed because of the extra semicolon in Line 41024 in node_modules\fomantic-ui-css\semantic.css

Steps to reproduce

  1. Upgrade to webpack 5.x.x, mini-css-extract-plugin 2.x.x, and fomantic-ui-css 2.x.x
  2. Use webpack 5 asset modules => https://webpack.js.org/guides/asset-modules/
  3. My webpack.config =>
plugins: [
    new MiniCssExtractPlugin({
        filename: "[name].css"
    })
],

module: {
    rules: [
        {
             test: /\.js?$/,
             exclude: /node_modules/,
             loader: "babel-loader"
        },
        {
             test: /\.css$/i,
             use: [
                 MiniCssExtractPlugin.loader,
                 "css-loader"
             ]
        },
        {
             test: /\.(png|svg|jpg|jpeg|gif)$/i,
             type: "asset/resource"
        },
        {
             test: /\.(woff|woff2|eot|ttf|otf)$/i,
             type: "asset/resource"
        }
    ]
}

Expected result

Webpack compilation without errors.

Actual result

ModuleBuildError: Module build failed: UnhandledSchemeError: Reading from "data:application/x-font-ttf;charset=utf-8;;base64

Screenshot (if possible)

image

Version

fomantic-ui-css v2.8.8
webpack v5.46.0
mini-css-extract-plugin v2.1.0

@shibbir shibbir added state/awaiting-investigation Anything which needs more investigation state/awaiting-triage Any issues or pull requests which haven't yet been triaged type/bug Any issue which is a bug or PR which fixes a bug labels Jul 24, 2021
@lubber-de lubber-de added state/has-pr An issue which has a related PR open and removed state/awaiting-investigation Anything which needs more investigation state/awaiting-triage Any issues or pull requests which haven't yet been triaged labels Jul 25, 2021
@lubber-de lubber-de added this to the 2.9.0 milestone Jul 25, 2021
@lubber-de
Copy link
Member

Additional semicolon removed by #2028

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang/css Anything involving CSS type/bug Any issue which is a bug or PR which fixes a bug
Projects
None yet
Development

No branches or pull requests

2 participants