Comments (5)
@apstone should be fixed in 8.3.0. Give it a try!
Looks to be working again for me. Thanks again @DuCanhGH
from serwist.
Bloody hell.
Supporting both ESM and CJS is just so much hassle I'm not going to lie.
This was due to a change in our rollup.config.js:
Old:
[
{
input: "src/index.ts",
output: [
{
file: "dist/index.old.cjs",
format: "cjs",
exports: "named",
},
{
file: "dist/index.js",
format: "esm",
},
],
},
{
input: "src/index.internal.ts",
output: [
{
file: "dist/index.internal.old.cjs",
format: "cjs",
exports: "named",
},
{
file: "dist/index.internal.js",
format: "esm",
},
],
},
];
New:
{
input: {
index: "src/index.ts",
"index.internal": "src/index.internal.ts",
},
output: [
{
dir: "dist",
entryFileNames: "[name].cjs",
format: "cjs",
exports: "named",
},
{
dir: "dist",
entryFileNames: "[name].js",
format: "esm",
},
],
}
Turns out I also need chunkFileNames
, otherwise Rollup would always use ".js" for all the chunks. What in the world.
from serwist.
@apstone should be fixed in 8.3.0. Give it a try!
from serwist.
Happy to help if you will point me in the right direction!
from serwist.
Ahh - makes sense. I am not that familiar with this process, but appreciate your effort @DuCanhGH
from serwist.
Related Issues (20)
- [Docs]: Next.js, where are the cache expiration settings and similar configuration HOT 8
- [Bug]: Error [ERR_REQUIRE_ESM]: require() of ES Module HOT 2
- [Bug]: serwist tries to install service worker with different name than specified in next config HOT 2
- [Bug]: Problem with old safari version HOT 9
- [Docs]: Can I precache routes? (Next) HOT 13
- [Docs]: Nextjs webmanifest
- [Feature request]: `next dev --turbo` support HOT 4
- [Bug]: serwist/next using `basePath` results in wrong sw.js URL in manifest HOT 3
- [Bug]: PPR Forces Load Wait HOT 4
- [Feature request]: Offline page fallback HOT 4
- [Bug]: getServerSideProps not triggered HOT 7
- [Docs][Bug]: using offline pages HOT 2
- [Bug]: Snyk vulnerability SNYK-JS-INFLIGHT-6095116 HOT 6
- Cannot find package 'webpack' HOT 2
- [Docs]: Can you update with an example for sub domain like app.acme.com HOT 1
- [Bug]: require() of ES Module not supported when running tests HOT 3
- [Bug]: Googletagmanager fails to load on safari with the default @serwist/next package HOT 6
- [Bug]: Next pages navigation causes stale data HOT 3
- [Bug]: Fetch requests do not go through service worker HOT 4
- [Bug]: Service Worker is installed on a page out of scope. HOT 4
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 serwist.