Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'compilation' of undefined #200

Closed
Srikanththyagarajan opened this issue Mar 20, 2018 · 6 comments
Closed

'compilation' of undefined #200

Srikanththyagarajan opened this issue Mar 20, 2018 · 6 comments

Comments

@Srikanththyagarajan
Copy link

Srikanththyagarajan commented Mar 20, 2018

Im facing issue while trying to run the application using npm run storybook.,

C:\inetpub\wwwroot\react-diagrams-master\node_modules\webpack\lib\DefinePlugin.js:42
compiler.hooks.compilation.tap(
^

TypeError: Cannot read property 'compilation' of undefined
at DefinePlugin.apply (C:\inetpub\wwwroot\react-diagrams-master\node_modules\webpack\lib\DefinePlugin.js:42:17)
at Compiler.apply (C:\inetpub\wwwroot\react-diagrams-master\node_modules\tapable\lib\Tapable.js:375:16)
at webpack (C:\inetpub\wwwroot\react-diagrams-master\node_modules@storybook\react\node_modules\webpack\lib\webpack.js:33:19)
at exports.default (C:\inetpub\wwwroot\react-diagrams-master\node_modules@storybook\react\dist\server\middleware.js:29:40)
at Object. (C:\inetpub\wwwroot\react-diagrams-master\node_modules@storybook\react\dist\server\index.js:153:34)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object. (C:\inetpub\wwwroot\react-diagrams-master\node_modules@storybook\react\bin\index.js:3:1)
at Module._compile (module.js:571:32)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)

kindly can anyone assist me

@dylanvorster
Copy link
Member

Fixed in 5.1.1 turns out awesome-typescript-loader is not so awesome.... as it drops .d.ts files for some reason

@Srikanththyagarajan
Copy link
Author

Thanks for the updated version, i hope it works charm

@Srikanththyagarajan
Copy link
Author

Hi i just downloaded version 5.1.1 but still im getting the same error
compilationerror

@dylanvorster
Copy link
Member

are you downloading 5.1.1 from npm or are you downloading it form git? When I clone this from git, run yarn install and then yarn run storybook, everything works fine. I think the issue is that you are using npm which is not respecting the yarn.lock file

@Srikanththyagarajan
Copy link
Author

Srikanththyagarajan commented Mar 22, 2018 via email

@Srikanththyagarajan
Copy link
Author

Srikanththyagarajan commented Mar 22, 2018

I removed the yarn lock and generated npm lock file so that it doesn't impact the ipackqge download, but I guess the issue is in my end, so let me understand what's the issue is and then I'll sure comeback for your suggestion, Thanks Dylan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants