开发Node.js 版本多少 #415
Closed
impossible98
started this conversation in
General
Replies: 4 comments
-
我自己使用的v20.19.0与v22,都可以,v23我还没有使用过,你可以贴一下你的报错信息 |
Beta Was this translation helpful? Give feedback.
0 replies
-
改好了,还会报错
import * as path from "path";
import { fileURLToPath } from 'url';
import { dirname } from 'path';
import { defineConfig } from "@rspack/cli";
import { rspack } from "@rspack/core";
const version = "0.17.0-beta.2"
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
import NodePolyfillPlugin from "node-polyfill-webpack-plugin";
const isDev = process.env.NODE_ENV === "development";
const isBeta = version.includes("-");
// Target browsers, see: https://github.com/browserslist/browserslist
const targets = ["chrome >= 87", "edge >= 88", "firefox >= 78", "safari >= 14"];
|
Beta Was this translation helpful? Give feedback.
0 replies
-
v23版本需要对 import * as path from "path";
import { defineConfig } from "@rspack/cli";
import { rspack } from "@rspack/core";
import packageJson from "./package.json" with { type: "json" };
import NodePolyfillPlugin from "node-polyfill-webpack-plugin";
const isDev = process.env.NODE_ENV === "development";
const isBeta = packageJson.version.includes("-");
const __dirname=path.resolve(); |
Beta Was this translation helpful? Give feedback.
0 replies
-
处理了,哥哥可以尝试一下: 5274edf |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
v23.10.0 一堆配置错误
Beta Was this translation helpful? Give feedback.
All reactions