Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Tests fail with Babel plugin error #13

Closed
kaitmore opened this issue Apr 25, 2018 · 2 comments
Closed

Tests fail with Babel plugin error #13

kaitmore opened this issue Apr 25, 2018 · 2 comments

Comments

@kaitmore
Copy link

kaitmore commented Apr 25, 2018

What version of Noderize and Node are you using?

Node v9.4.0
Noderize v0.5.0

What operating system are you using? Are you using any special setup?

macOS High Sierra

What did you do?

I created a new project with npx create-noderize and set "languages": "typescript" within the noderize config field in my package.json. I then created a test file under /src and ran npm run test, which gives me the following error:

The new decorators proposal is not supported yet. You must pass the `"legacy": true` 
option to @babel/plugin-proposal-decorators  (While processing: "/node_modules/
@babel/plugin-proposal-decorators/lib/index.js")

I also tried adding a babel config within the noderize config in package.json, setting the "legacy": true option for @babel/plugin-proposal-decorators as the error instructed, but that didn't have any effect.

What did you expect to see?

No errors

What did you see instead?

image

@kaitmore kaitmore changed the title Running tests fail with Babel plugin error Tests fail with Babel plugin error Apr 26, 2018
@Cretezy
Copy link
Owner

Cretezy commented Apr 28, 2018

Yep. Just ran into this today. Will have an update soon. Seems like Babel did a breaking change.

@Cretezy
Copy link
Owner

Cretezy commented Apr 28, 2018

I've forced pushed 0.6.0 which fixes this (and changes to Webpack 4).

@Cretezy Cretezy closed this as completed Apr 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants