Skip to content

Not working with "fork-ts-checker-webpack-plugin" #508

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

Closed
Can-Sahin opened this issue May 27, 2019 · 4 comments
Closed

Not working with "fork-ts-checker-webpack-plugin" #508

Can-Sahin opened this issue May 27, 2019 · 4 comments
Labels

Comments

@Can-Sahin
Copy link

This is a (Bug Report / Feature Proposal)

Description

For bug reports:

  • What went wrong?

Default installation and configuration with fork-ts-checker-webpack-plugin is NOT working. It throws an error Cannot read property 'options' of undefined. Normally it looks like that lib's problem but the comments in related issue suggest that there might be some inconsistencies.

  • What stacktrace or error message from your provider did you see?
TypeError: Cannot read property 'options' of undefined
    at ForkTsCheckerWebpackPlugin.computeContextPath (/Users/xx/Git/xx/node_modules/fork-ts-checker-webpack-plugin/src/index.ts:344:36)
    at ForkTsCheckerWebpackPlugin.apply (/Users/xx/Git/xx/node_modules/fork-ts-checker-webpack-plugin/src/index.ts:278:30)
    at webpack (/Users/xx/Git/xx/node_modules/webpack/lib/webpack.js:47:13)
    at options.map.options (/Users/xx/Git/xx/node_modules/webpack/lib/webpack.js:35:55)
    at Array.map (<anonymous>)
    at webpack (/Users/xx/Git/xx/node_modules/webpack/lib/webpack.js:35:40)
    at ServerlessWebpack.compile (/Users/xx/Git/xx/node_modules/serverless-webpack/lib/compile.js:12:22)

Additional Data

  • Serverless-Webpack Version you're using: 5.3.0
  • Webpack version you're using: 4.30.0
  • Serverless Framework Version you're using:
  • Operating System:
  • Stack Trace (if available):
@HyperBrain HyperBrain added the bug label Jun 1, 2019
@esetnik
Copy link
Contributor

esetnik commented Jun 5, 2019

I have the same issue when using fork-ts-checker-webpack-plugin in conjunction with:

package:
  individually: true

@DASPRiD
Copy link

DASPRiD commented Jun 12, 2019

I took care of the issue, fixed in fork-ts 1.3.6 via TypeStrong/fork-ts-checker-webpack-plugin#299 (details over there).

@Can-Sahin
Copy link
Author

Yes it works now thanks!. I cannot be sure if serverless-webpack has something to do here. If not, you can close the issue :)

@DASPRiD
Copy link

DASPRiD commented Jun 23, 2019

I'm not a collaborator here, but you as the reporter can close it ;)

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

No branches or pull requests

4 participants