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

White screen after adding this package #15

Open
smeijer opened this issue Jun 24, 2019 · 1 comment
Open

White screen after adding this package #15

smeijer opened this issue Jun 24, 2019 · 1 comment

Comments

@smeijer
Copy link

smeijer commented Jun 24, 2019

I've tried this package before, and just thought; let's try it again!

Unfortunately after adding the package, the screen stay's blank with only two console errors.

Does the babel transform also affect existing js files? I have a working js/react project, and are simply adding this package to it. No other changes at all:

meteor add nathantreid:[email protected]
meteor npm install @babel/plugin-transform-typescript --save-dev
meteor npm install @babel/preset-typescript --save-dev
Uncaught Error: Cannot find module 'redux-saga/effects'
...
Uncaught TypeError: Cannot read property 'dispatch' of undefined
@akanix42
Copy link
Owner

It shouldn't have any effect on .js files as the plugin is only registered for .ts and .tsx files.
However, perhaps one of the npm packages contains .ts files which are now being transpiled and causing issues?
You can try adding a .tsignore file to your project root to exclude npm packages:

node_modules/

If you provide a reproduction repo I'll take a look.

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