You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { appTools } from "@modern-js/app-tools";
import { tailwindcssPlugin } from "@modern-js/plugin-tailwindcss";
import { ssgPlugin } from '@modern-js/plugin-ssg';
// https://modernjs.dev/en/configure/app/usage
module.exports = {
dev: {
writeToDisk: false,
},
output: {
ssg: true,
},
runtime: {
router: true,
},
plugins: [
appTools({
bundler: "rspack", // Set to 'webpack' to enable webpack
}),
tailwindcssPlugin(),
ssgPlugin(),
],
};
未使用 polyfillPlugin,执行 pnpm modern deploy && node .output/index.js 打开 http://localhost:8080/__polyfill__ 页面会陷入无休止的重载,console 提示 The initial URL / and the URL /__polyfill__ to be hydrated do not match, reload.
复现链接
npx @modern-js/create@latest myapp
复现步骤
pnpm modern deploy && node .output/index.js
The text was updated successfully, but these errors were encountered:
版本信息
问题详情
脚手架默认创建的新项目,使用如下配置
未使用 polyfillPlugin,执行
pnpm modern deploy && node .output/index.js
打开http://localhost:8080/__polyfill__
页面会陷入无休止的重载,console 提示The initial URL / and the URL /__polyfill__ to be hydrated do not match, reload.
复现链接
npx @modern-js/create@latest myapp
复现步骤
pnpm modern deploy && node .output/index.js
The text was updated successfully, but these errors were encountered: