Skip to content

Fixed two annoying warnings #19

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

esnho
Copy link

@esnho esnho commented Jun 15, 2018

As can be seen from the commits I fixed two warning, one is about the new .flatShading flag, the other is about using array of materials instead of the Multimaterial object.

@sohamkamani
Copy link
Owner

Thanks! Unfortunately the build is failing. Could you please test the build on your end?

@esnho
Copy link
Author

esnho commented Jun 15, 2018

Hi, here the build is ok, I don't know why is failing.


Mac-Pro-di-Mac:three-object-loader macpro2$ npm run test

> [email protected] test /Users/macpro2/three-object-loader
> gulp test

[12:26:28] Using gulpfile ~/three-object-loader/gulpfile.js
[12:26:28] Starting 'clean:all'...
[12:26:28] Finished 'clean:all' after 28 ms
[12:26:28] Starting 'test'...
[12:26:28] Starting 'source:build'...
[12:26:28] Starting 'test:build'...
[12:26:28] Starting 'watch'...
[12:26:28] Finished 'watch' after 14 ms
[12:26:28] Finished 'test' after 34 ms

source/index.js
  line 218  col 104  Strings must use singlequote.
  line 414  col 29   'l' is already defined.
  line 516  col 63   Strings must use singlequote.
  line 516  col 76   Strings must use singlequote.
  line 520  col 41   Strings must use singlequote.
  line 569  col 51   Strings must use singlequote.
  line 569  col 64   Strings must use singlequote.
  line 573  col 41   Strings must use singlequote.
  line 575  col 61   Strings must use singlequote.
  line 578  col 31   Strings must use singlequote.
  line 586  col 50   Strings must use singlequote.
  line 588  col 34   Strings must use singlequote.
  line 589  col 34   Strings must use singlequote.
  line 604  col 26   Strings must use singlequote.
  line 646  col 44   Strings must use singlequote.
  line 646  col 57   Strings must use singlequote.
  line 657  col 16   'i' is already defined.
  line 657  col 23   'l' is already defined.
  line 694  col 15   'material' is already defined.
  line 730  col 20   'mi' is already defined.
  line 730  col 28   'miLen' is already defined.
  line 732  col 17   'sourceMaterial' is already defined.

  ⚠  22 warnings

[12:26:29] Finished 'source:build' after 610 ms
[12:26:29] Finished 'test:build' after 593 ms
[12:26:29] Starting 'build:all'...
[12:26:29] Finished 'build:all' after 1.81 μs
[12:26:29] Starting 'test:all'...


  OBJLoader Wrapper
    ✓ THREE does not contain OBJLoader by default
    ✓ Assigns THREE.OBJLoader as a function once called
    ✓ Is an instance of ObjectLoader


  3 passing (7ms)

[12:26:29] Finished 'test:all' after 130 ms
Mac-Pro-di-Mac:three-object-loader macpro2$ npm run compile

> [email protected] compile /Users/macpro2/three-object-loader
> gulp build

[12:30:12] Using gulpfile ~/three-object-loader/gulpfile.js
[12:30:12] Starting 'clean:dist'...
[12:30:12] Finished 'clean:dist' after 25 ms
[12:30:12] Starting 'build'...
[12:30:12] Finished 'build' after 351 ms
Mac-Pro-di-Mac:three-object-loader macpro2$ npm run prepublish

> [email protected] prepublish /Users/macpro2/three-object-loader
> npm run compile


> [email protected] compile /Users/macpro2/three-object-loader
> gulp build

[12:30:22] Using gulpfile ~/three-object-loader/gulpfile.js
[12:30:22] Starting 'clean:dist'...
[12:30:22] Finished 'clean:dist' after 24 ms
[12:30:22] Starting 'build'...
[12:30:22] Finished 'build' after 340 ms

@antonioblancato
Copy link

antonioblancato commented Jan 10, 2019

@esnho @sohamkamani I guess the failing compilation is related to gulpjs/gulp#2162. The solution is to remove the yarn.lock. This worked for me:

rm yarn.lock
yarn cache clean
yarn install

(Not sure whether clearing the cache is necessary though)

@esnho
Copy link
Author

esnho commented Jan 27, 2019

Thank you @antonioblancato removing the yarn.lock did the job.

@sohamkamani please can you check the pull again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants