Closed xiaokaike closed 8 years ago
@xiaokaike I think this has something to do with webpack rather than the having express
in both packages. Try adding express
as an external to prevent webpack from compiling it (which is what we want since it will ship with the app):
// build/webpack.base.conf.js
...
plugins: [
new webpack.ExternalsPlugin('commonjs2', [
...
'screen',
'shell',
'express' // <-- Add this line.
])
],
...
@bradstewart thanks close the issue
i use express in build script dev-server.js and use express in app/ electron app
then i put the
express
in the outside package.json likeand i also put the
express
in app/package.jsonwhen i run
npm run start
then i get a warningHow can I solve this warning