Skip to content

Commit 84deb02

Browse files
Next Example Fixes (#3102)
* update * testing NextFederation v7 * testing NextFederation v7 * testing NextFederation v7 * update plugins to new beta * get localhost:3000 running * update plugins * update plugins * update plugins * update plugin * chore: nextmf7 update plugin to latest beta * chore: nextmf7 update plugin to latest beta * chore: nextmf7 update plugin to latest beta * chore: nextmf7 update plugin to latest beta * chore: upgrade to next federation 7 * chore: upgrade to next federation 7 * chore: upgrade to next federation 7 * chore: upgrade to next federation 7 * update federation * chore: update gitignore * chore: update plugin * chore: upgrade to next federation 7 * chore: upgrade to next federation 7
1 parent 6379f6a commit 84deb02

File tree

17 files changed

+206
-197
lines changed

17 files changed

+206
-197
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Logs
22
logs
33
*.log
4+
*.DS_STORE
45
npm-debug.log*
56
yarn-debug.log*
67
yarn-error.log*

apollo-client/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "apollo-client",
33
"private": true,
4+
"version": "0.0.0",
45
"workspaces": [
56
"app1",
67
"app2"

cra/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "cra",
33
"private": true,
4+
"version": "0.0.1",
45
"workspaces": {
56
"packages": [
67
"./host",

different-react-versions-typescript/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "different-react-versions-typescript",
33
"private": true,
4+
"version": "0.0.0",
45
"workspaces": {
56
"packages": [
67
"app1",

native-federation-tests-typescript-plugins/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "native-federation-tests-typescript-plugins",
33
"private": true,
4+
"version": "1.0.0",
45
"scripts": {
56
"ls": "lerna ls",
67
"start:webpack": "lerna run --scope=native-federation-tests-typescript-remote dev:webpack & wait-on http-get://localhost:3000/ && lerna run --scope=native-federation-tests-typescript-host dev:webpack",
@@ -14,4 +15,4 @@
1415
"lerna": "6.6.2",
1516
"wait-on": "7.0.1"
1617
}
17-
}
18+
}

nextjs-ssr/checkout/next.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const remotes = isServer => {
66
return {
77
home: `home@http://localhost:3001/_next/static/${location}/remoteEntry.js`,
88
shop: `shop@http://localhost:3002/_next/static/${location}/remoteEntry.js`,
9-
// checkout: `checkout@http://localhost:3000/_next/static/${location}/remoteEntry.js`,
109
};
1110
};
1211
module.exports = {

nextjs-ssr/checkout/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"start": "NODE_ENV=production next start"
99
},
1010
"dependencies": {
11-
"@module-federation/nextjs-mf": "^6.5.2-rc6.0",
11+
"@module-federation/nextjs-mf": "^7.0.2",
1212
"lodash": "4.17.21",
1313
"next": "13.3.0",
1414
"react": "^18.2.0",

nextjs-ssr/home/next.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const NextFederationPlugin = require('@module-federation/nextjs-mf');
44
const remotes = isServer => {
55
const location = isServer ? 'ssr' : 'chunks';
66
return {
7-
home: `home@http://localhost:3001/_next/static/${location}/remoteEntry.js`,
87
shop: `shop@http://localhost:3002/_next/static/${location}/remoteEntry.js`,
98
checkout: `checkout@http://localhost:3000/_next/static/${location}/remoteEntry.js`,
109
};

nextjs-ssr/home/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"start": "NODE_ENV=production next start -p 3001"
99
},
1010
"dependencies": {
11-
"@module-federation/nextjs-mf": "^6.5.2-rc6.0",
11+
"@module-federation/nextjs-mf": "^7.0.2",
1212
"lodash": "4.17.21",
1313
"next": "13.3.0",
1414
"react": "^18.2.0",

nextjs-ssr/shop/next.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const remotes = isServer => {
55
const location = isServer ? 'ssr' : 'chunks';
66
return {
77
home: `home@http://localhost:3001/_next/static/${location}/remoteEntry.js`,
8-
shop: `shop@http://localhost:3002/_next/static/${location}/remoteEntry.js`,
98
checkout: `checkout@http://localhost:3000/_next/static/${location}/remoteEntry.js`,
109
};
1110
};

nextjs-ssr/shop/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"start": "NODE_ENV=production next start -p 3002"
99
},
1010
"dependencies": {
11-
"@module-federation/nextjs-mf": "^6.5.2-rc6.0",
11+
"@module-federation/nextjs-mf": "^7.0.2",
1212
"lodash": "4.17.21",
1313
"next": "13.3.0",
1414
"react": "^18.2.0",

nextjs-ssr/yarn.lock

Lines changed: 171 additions & 171 deletions
Large diffs are not rendered by default.

react-16-17-18-ssr/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "react-16-17-18-ssr",
33
"private": true,
4+
"version": "0.0.0",
45
"workspaces": [
56
"remote1",
67
"remote2",

react-18-code-splitting/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "react-18-code-splitting",
33
"private": true,
4+
"version": "0.0.0",
45
"workspaces": [
56
"app1",
67
"app2"

react-18-server-2-server/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "react-18-server-2-server",
33
"private": true,
4+
"version": "0.0.0",
45
"workspaces": [
56
"app1",
67
"app2"

react-18-ssr/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "react-ssr",
33
"private": true,
4+
"version": "1.0.0",
45
"workspaces": [
56
"remote1",
67
"remote2",

yarn.lock

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10043,13 +10043,13 @@
1004310043
node-fetch "2.6.7"
1004410044
webpack-sources "3.2.3"
1004510045

10046-
"@module-federation/nextjs-mf@^6.5.2-rc6.0":
10047-
version "6.7.1"
10048-
resolved "https://registry.yarnpkg.com/@module-federation/nextjs-mf/-/nextjs-mf-6.7.1.tgz#9b5204d73eeea56ac3dbd82a52817215ce5f3e4f"
10049-
integrity sha512-uxE8D7Vcvl63syv8pa2Gt6LVaTYJIOjS1m+/Pa5KgSFFmGcX8sZ7BCpXJ3MQxNxFD2AA0QsHmX969Le/h6zKIw==
10046+
"@module-federation/nextjs-mf@^7.0.2":
10047+
version "7.0.2"
10048+
resolved "https://registry.yarnpkg.com/@module-federation/nextjs-mf/-/nextjs-mf-7.0.2.tgz#1bfa0dc0bcfefb82ee5e5fff53a4d432185d9086"
10049+
integrity sha512-DHrHyPedavvkv2Krw4nIX6Oj0gka5PyikN1uObdAEHPMZzLl4QZTlpMNbQntHViWOLqRGuwTMPX5MiIyU9nvvA==
1005010050
dependencies:
10051-
"@module-federation/node" "0.16.2"
10052-
"@module-federation/utilities" "1.9.1"
10051+
"@module-federation/node" "1.0.2"
10052+
"@module-federation/utilities" "2.0.0"
1005310053
encoding "0.1.13"
1005410054
eventemitter3 "^5.0.0"
1005510055
fast-glob "^3.2.11"
@@ -10087,15 +10087,6 @@
1008710087
encoding "0.1.13"
1008810088
node-fetch "2.6.7"
1008910089

10090-
"@module-federation/[email protected]":
10091-
version "0.16.2"
10092-
resolved "https://registry.yarnpkg.com/@module-federation/node/-/node-0.16.2.tgz#36db955a11b9391a29ee5291e3b2ea6ec3c2ee9e"
10093-
integrity sha512-9zyB1D76lKsoSHcpaM5V+ifNqS2wevCQQgbw3Q7/C9JhoBM2GFhXkKXR2FxTlWdPZz4dmkN+jC5ZYW/w8v+mEA==
10094-
dependencies:
10095-
"@module-federation/utilities" "1.9.1"
10096-
encoding "^0.1.13"
10097-
node-fetch "^2.6.7"
10098-
1009910090
"@module-federation/[email protected]":
1010010091
version "0.9.8"
1010110092
resolved "https://registry.yarnpkg.com/@module-federation/node/-/node-0.9.8.tgz#3493568ba9730dd589b7d99e21127102f3b1784f"
@@ -10109,6 +10100,16 @@
1010910100
next "^12 || ^13"
1011010101
react "^17 || ^18"
1011110102

10103+
"@module-federation/[email protected]":
10104+
version "1.0.2"
10105+
resolved "https://registry.yarnpkg.com/@module-federation/node/-/node-1.0.2.tgz#bf070ab80e37a3f5f3b36beb38b7df7399a778ae"
10106+
integrity sha512-diKU6lDtwiGtnXsuEEcT3MBv4T6rEueEf3izYfcszNwFzt7Oh7d78q3mu0MS3l5N518+wXyb+bZh0iWafgLQYw==
10107+
dependencies:
10108+
"@module-federation/utilities" "2.0.0"
10109+
encoding "^0.1.13"
10110+
node-fetch "^2.6.7"
10111+
webpack-sources "3.2.3"
10112+
1011210113
"@module-federation/[email protected]":
1011310114
version "1.0.2"
1011410115
resolved "https://registry.yarnpkg.com/@module-federation/utilities/-/utilities-1.0.2.tgz#9231c7407ddafbe914b5328954b111077d2d504f"
@@ -10137,10 +10138,12 @@
1013710138
resolved "https://registry.yarnpkg.com/@module-federation/utilities/-/utilities-1.4.0.tgz#c7b8c6e08262af6377714d94557929a3df67e64e"
1013810139
integrity sha512-J4KISJvLmFhZEgBhdntn6MWqElWU6vMC/JuQT7MdNe8Apc8qoYis0FKGp4gp8YkIPPhplkQExy2vS14+3KxoJA==
1013910140

10140-
"@module-federation/[email protected]":
10141-
version "1.9.1"
10142-
resolved "https://registry.yarnpkg.com/@module-federation/utilities/-/utilities-1.9.1.tgz#be6ee95a90ca5d26243e4b76c92ee169784231ef"
10143-
integrity sha512-EVPV90TSK+tSG6R7Kw65w7pRuI2phff8YFIazzGWNViZPRlTYS3c9pZWVPYGiwIz1+96P+yeNp/WQZrkyS8kpA==
10141+
"@module-federation/[email protected]":
10142+
version "2.0.0"
10143+
resolved "https://registry.yarnpkg.com/@module-federation/utilities/-/utilities-2.0.0.tgz#f28a9308ae734f72e02abd896ecab4687ae8d83f"
10144+
integrity sha512-MtdVeSFOAMIK50+G4ZHl+m4gV3TscYRN43El+2djpJt0Md9O2a9CymHb8EumK9KYndbRCFf9Y8M2X+LtC31STg==
10145+
dependencies:
10146+
webpack-sources "3.2.3"
1014410147

1014510148
"@module-federation/utilities@^1.3.0":
1014610149
version "1.5.0"

0 commit comments

Comments
 (0)