Can't start the standalone version of the TripsLayer example
Actual Result
3 errors appeared in turn when I was trying to start the TripsLayer example following the guideline.
-
Module 'webpack-cli' is outdated. can't read property 'properties' of undefined at module.export 'webpack-cli' occurred after I ran
npm installnpm start(solved by updating 'webpack-cli' to the latest version 3.1.1); -
Module 'html-webpack-plugin' not found. can't find module 'html-webpack-plugin' (solved by installing 'html-webpack-plugin');
-
After I solved last two errors, the project can be compiled, but nothing happened. And this error occured App is not defined
Expected Result
Run TripLayer example.
Reproduce Steps
- update 'webpack-cli' to 3.1.1;
- install 'html-webpack-plugin';
- install '@deck.gl/experimental-layers' (version 6.1.1);
This should have been fixed by https://github.com/uber/deck.gl/pull/2326 Try 6.2-release branch
@Pessimistress I download the new "trip" file and 'npm install'&'npm start' same error happened. But I implement a TripLayer by import './trip-layer', so it's no longer an issue for me. I'll close this issue. Thanks for your effort! XD
By the way, I'm desperately curious about any news on the "strokeWidth" prop? I can't find its definition in 'trip-layer.js', and I know it used to be unchangeable because of the use of gl.LINE. But I saw you manipulate it in multi-viewport example. So is it now accessible? If it is not, is there any trick I could use to change the line width while keeping the other props (i.e., trailLength, animation) of TripsLayer? Any tip will be appreciated. @Pessimistress
@ricardoCyy how did you fix the 'App is not defined' error? Can you share a code snippet?
@ricardoCyy how did you fix the 'App is not defined' error? Can you share a code snippet?
@lucycousins sorry for my late reply. I think this error occurred because of the late updating of "trip-layer.js" file in 'deck.gl'. Solution: download the latest "trip-layer.js" file in your project and just import it from your project but not from 'deck.gl'.