deck.gl icon indicating copy to clipboard operation
deck.gl copied to clipboard

Can't start the standalone version of the TripsLayer example

Open ricardoCyy opened this issue 8 years ago • 5 comments

Actual Result

3 errors appeared in turn when I was trying to start the TripsLayer example following the guideline.

  1. Module 'webpack-cli' is outdated. can't read property 'properties' of undefined at module.export 'webpack-cli' occurred after I ran npm install npm start (solved by updating 'webpack-cli' to the latest version 3.1.1);

  2. Module 'html-webpack-plugin' not found. can't find module 'html-webpack-plugin' (solved by installing 'html-webpack-plugin');

  3. 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

  1. update 'webpack-cli' to 3.1.1;
  2. install 'html-webpack-plugin';
  3. install '@deck.gl/experimental-layers' (version 6.1.1);

ricardoCyy avatar Sep 27 '18 17:09 ricardoCyy

This should have been fixed by https://github.com/uber/deck.gl/pull/2326 Try 6.2-release branch

Pessimistress avatar Oct 16 '18 07:10 Pessimistress

@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

ricardoCyy avatar Oct 18 '18 03:10 ricardoCyy

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 avatar Oct 19 '18 02:10 ricardoCyy

@ricardoCyy how did you fix the 'App is not defined' error? Can you share a code snippet?

lucycousins avatar Mar 04 '19 09:03 lucycousins

@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'.

ricardoCyy avatar Mar 15 '19 12:03 ricardoCyy