Replies: 5 comments 5 replies
-
After updating a lot of peer libraries to make sure it wasn't something else, I discovered that this issue starts with ol@7.5.0, with only one error (below). Any thoughts on what changed from 7.4 to 7.5 and beyond that requires a specific parser?
|
Beta Was this translation helpful? Give feedback.
-
Turns out openlayers introduced ES2020 syntax starting in 7.5, but our application was configured to ignore the node_modules folder entirely. I added an exception to transpile the openlayers library and it now builds again. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Your config prevents Webpack from tanspiling OpenLayers, because you're excluding exclude: /node_modules\/(?!(ol|another-module-that-needs-to-be-transpiled)\/).*/ |
Beta Was this translation helpful? Give feedback.
-
The ol package contains untranspiled code. We should remove the |
Beta Was this translation helpful? Give feedback.
-
I bumped from 6.15.1 to 8.2.0 today, and, I'm getting a parsing error from a library depenency. I have
@babel/preset-env
installed, so unsure why I'm getting this error. I will continue to investiate, but asking here in case I'm missing something obvious..babelrc
package.json related to babel
Beta Was this translation helpful? Give feedback.
All reactions