You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using in some webpack configurations, the @babel/plugin-transform-for-of plugin is not installed and webpack throws an error.
This is due to using the es2016 target in the typescript config. I think we should change this to es5 so the package can be used in more configurations.
Expected Behaviour
Webpack should compile successfully.
Actual Behaviour
Webpack throws the following error.
ERROR in ./node_modules/@adeattwood/react-form/lib/form.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: /src/node_modules/@adeattwood/react-form/lib/form.js: unknown Statement of type "ForOfStatement"
Steps to Reproduce the Problem
Install @adeattwood/react-form in a project with a bare babel config using webpack.
Use ReactForm in the application.
Run webpack.
The text was updated successfully, but these errors were encountered:
When using the package with a webpack config that dose not have the
`@babel/plugin-transform-for-of` you can get the followning error
```
unknown Statement of type "ForOfStatement"
```
Using a older syntax for the common js package should prevent this.
Ref: #149
When using the package with a webpack config that dose not have the
`@babel/plugin-transform-for-of` you can get the followning error
```
unknown Statement of type "ForOfStatement"
```
Using a older syntax for the common js package should prevent this.
Ref: #149
Description
When using in some webpack configurations, the
@babel/plugin-transform-for-of
plugin is not installed and webpack throws an error.This is due to using the
es2016
target in the typescript config. I think we should change this toes5
so the package can be used in more configurations.Expected Behaviour
Webpack should compile successfully.
Actual Behaviour
Webpack throws the following error.
Steps to Reproduce the Problem
@adeattwood/react-form
in a project with a bare babel config using webpack.The text was updated successfully, but these errors were encountered: