catamphetamine / webpack-isomorphic-tools

Server-side rendering for your Webpack-built applications (e.g. React)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

maerzhase opened this issue · 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?

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

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