Giter Site home page Giter Site logo

Comments (5)

alextanhongpin avatar alextanhongpin commented on May 23, 2024 2

Should be fixed in 1.2.2

from compress.js.

maitrungduc1410 avatar maitrungduc1410 commented on May 23, 2024

same issue here. here's detail:

Module parse failed: 'import' and 'export' may appear only with 'sourceType: module' (2:0)
File was processed with these loaders:
 * ./node_modules/next-translate/lib/cjs/plugin/loader.js
You may need an additional loader to handle the result of these loaders.
| // Support regenerator-runtime globally.
> import "regenerator-runtime/runtime.js";
| 
| import Base64 from "./core/base64.js";

from compress.js.

nemanjam avatar nemanjam commented on May 23, 2024

I get same build error in Next.js app.

from compress.js.

bruceharrison1984 avatar bruceharrison1984 commented on May 23, 2024

I just got this as well in NextJS.

I ended up using https://www.npmjs.com/package/browser-image-compression instead. It's very similar to this, but it's already compiled in a compatible package type. It nearly a drop-in replacement.

from compress.js.

avneet2112 avatar avneet2112 commented on May 23, 2024

I also got a solution here.

You can restrict the compress.js to the last update where it has 0 dependencies.
inside your package.json
replace this
"compress.js": "^1.1.2",
with this
"compress.js": "1.1.2",

from compress.js.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.