Comments (5)
Should be fixed in 1.2.2
from compress.js.
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.
I get same build error in Next.js app.
from compress.js.
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.
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)
- Why you use jpeg ? HOT 9
- Transparency lost on png images HOT 2
- Rotate image on loading from mobile devices. HOT 5
- Make it clearer that units are decimal multiples of bytes HOT 2
- File size from base64 calculation HOT 2
- Fork
- How to use this? HOT 1
- Exif orientation support broken with Safari 13.1 (iOS and Desktop) HOT 3
- Cropp error
- Error when running jest HOT 2
- Upgrading from 1.2.2 to 2.0.0 on NextJS 14.2.3 App throws 'window not defined error' HOT 3
- https://cdn.jsdelivr.net/gh/alextanhongpin/compress.js/build/index.js HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from compress.js.