Commit c5c7965
committed
Fix compilation failure with using Ably on Next.js with turbopack
Using `serverComponentsExternalPackages` nextjs config option to fix
"Module not found" errors during compilation when running nextjs with
turbopack (`next dev --turbo`). See explanation for the issue and the
solution at ably/ably-js#1699 (comment).
Also removes the need to use `overrides` in package.json and `webpack`
field in next.config.js introduced in 3d51768
to fix `Critical dependency: the request of a dependency is an expression`
warnings1 parent 94c5f64 commit c5c7965
3 files changed
+14
-35
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
20 | 16 | | |
21 | | - | |
| 17 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 34 | | |
40 | | - | |
| 35 | + | |
0 commit comments