Closed zehawki closed 6 months ago
@zehawki I am not overly familiar with create react app. I suspect this happens during the webpack build. Webpack will need the module installed locally as it cannot resolve URL imports.
Installing with npm install -S @jsquash/jpeg
and importing it as shown in the docs should solve the issue 👍
Describe the bug
Getting a
Module not found: Can't resolve 'https://unpkg.com/@jsquash/jpeg?module'
To Reproduce
Just the very basic - added an import statement as given here https://github.com/jamsinclair/jSquash?tab=readme-ov-file#usage-in-the-browser
Environment
React 17 + CRA 4 + Craco with config:
Happy to provide any further info. I find this part about the JS toolchaining quite confusing, and my knowledge in this area is poor.