webpack-isomorphic-tools icon indicating copy to clipboard operation
webpack-isomorphic-tools copied to clipboard

[npm link] Possibly can't find NPM linked node_modules

Open maerzhase opened this issue 8 years ago • 2 comments

Hi. I am experiencing exactly the issue with a npm link module, that you described in issue #38

I don't know why but for some reason in Webpack the name for that module is strange.

{ "id": 284, "identifier": "/Users/siarheisemashka/Sites/webpack-isomorphic-tools-example/node_modules/react-shared-library-example/dist/components/MyStyledComponent.js", "name": "../react-shared-library-example/dist/components/MyStyledComponent.js", "index": 284, } It is in node_modules but at the same time it looks in a whole another folder. Do you have any npm link magic installed or anything else.

Do you have any idea how to fix this problem?

maerzhase avatar Dec 11 '16 21:12 maerzhase

Hello. I don't, but you could try universal-webpack to see if it works with npm link.

catamphetamine avatar Dec 11 '16 23:12 catamphetamine

And you didn't tell from which folder are you running all of this.

catamphetamine avatar Dec 11 '16 23:12 catamphetamine