Webpack problems with @turf/transformation
See original GitHub issueMore specificially I’m getting this error message:
_turf_transform_translate__WEBPACK_IMPORTED_MODULE_6__.transformTranslate is not a function
The code I’m working with. I know that it works because I was previously using @turf/turf. However, I’m trying to refactor and use just the packages I need.
import * as turf_transformation from '@turf/transformation';
import * as turf_helper from '@turf/helpers';
const point = turf_helper.point([camera.values[1].longitude, camera.values[1].latitude])
const translatedPoly = turf_transformation.transformTranslate(point, 10000, 270);
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
Turf does not work with Webpack 4 · Issue #1383 - GitHub
I have a dependency on mapbox which uses turf. After the upgrade I started getting build errors like the following. It appears to...
Read more >@turf/transform-translate | Yarn - Package Manager
@turf/point-to-line-distance Returns the minimum distance between a {@link Point} and a {@link LineString}, being the distance from a line the minimum distance ...
Read more >Configuring webpack and babel to transform rest arguments in ...
I'm using webpack and babel to compile my JavaScript to ES5. ... It looks like @babel/plugin-transform-parameters should fix the issue, ...
Read more >Build Performance - webpack
This guide contains some useful tips for improving build/compilation performance. General. The following best practices should help, whether you're running ...
Read more >Getting started with Turf.js
Turf.js | Advanced geospatial analysis for browsers and Node.js. ... If you're working in Node or with build tool (such as webpack, browserify...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@RaymondDashWu I think it should be
Also I don’t believe “@turf/transformation” is a package on npm, I expect it to be “@turf/transform-translate”
https://www.npmjs.com/package/@turf/transform-translate