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

Error in example project during npm start #12

Closed
ianschmitz opened this issue Jun 9, 2018 · 2 comments
Closed

Error in example project during npm start #12

ianschmitz opened this issue Jun 9, 2018 · 2 comments

Comments

@ianschmitz
Copy link
Contributor

ianschmitz commented Jun 9, 2018

First of all, thanks so much for the package!

When following the usage instructions, or using the supplied example project, both result in the same error during npm start:

./src/index.tsx
Module build failed: Error: [BABEL] C:\Projects\tsexample\src\index.tsx:
.overrides is not allowed in preset options
    at Array.forEach (<anonymous>)
    at Array.map (<anonymous>)

This appears to be related to recent release of @babel/preset-typescript. More info can be read here: vercel/next.js#4467 (comment).

Setting the dependency to be fixed to an older version does the trick:

"@babel/preset-typescript": "7.0.0-beta.46"

Just wanted to flag this in case other users run into the same issue.

@strothj
Copy link
Owner

strothj commented Jun 9, 2018

Thank you for the report! I’ve reproduced it on my side.

Tomorrow I’ll see if there is anything that can be done from the prospective of the rewire.

@strothj
Copy link
Owner

strothj commented Jun 10, 2018

I've pushed v2.2.1 that I think takes care of this. Let me know if you run into any trouble.

@strothj strothj closed this as completed Jun 10, 2018
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