webpack / webpack

A bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff.

Home Page:https://webpack.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

failed to import ffmpeg-core.js

nareshallakonda opened this issue · comments

when i install ffmpeg and import { createFFmpeg, fetchFile } from '@ffmpeg/ffmpeg';
import like above , its getting like this new issue .!

./node_modules/@ffmpeg/ffmpeg/dist/umd/ffmpeg.js 55:4
Module parse failed: Unexpected character '#' (55:4)
File was processed with these loaders:

  • ./node_modules/babel-loader/lib/index.js
    You may need an additional loader to handle the result of these loaders.
    | new Error("failed to import ffmpeg-core.js");
    | class i {
#e = null;

| #t = {};
| #s = {};

Please update webpack to the latest version

Please update webpack to the latest version

webpack updated latest version but getting same issue !

Check your babel-loader configuration, your options for babel doesn't support private fields