Closed xd-dw closed 1 year ago
Can you provide reproducible repo?
pls refer to https://github.com/indux/OnlineTools with command npm run dev i'm using Node.js v18.12.1
@DylanPiercey friendly ping
The bug is in @marko/webpack/plugin
, you have multiple version of webpack-sources
.
Here - https://github.com/marko-js/webpack/blob/master/src/plugin/index.ts#L3.
For webpack@5 you should not use import { ReplaceSource } from "webpack-sources";
(because you can have multiple version of webpack-sources
and they can have incompatibilities between versions), you need to use this stuff:
const sources = compiler.webpack ? compiler.webpack.sources : require("webpack-sources");
const instance = new sources.ReplaceSource(...options);
@alexander-akait appreciate the ping. Will make the change on our end!
After upgrading to "@marko/webpack": "^9.3.1", issue resolved, close this issue.
Thank you ALL!
Hi, i try to start node server, but get below error, it seems .node is undefined.
The package.json file contains: