Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Dec 29 2016 21:28
  • Dec 29 2016 21:28
  • Dec 29 2016 21:28
  • Dec 29 2016 21:28
  • Dec 29 2016 21:27
  • Dec 29 2016 21:27
  • Dec 29 2016 21:27
  • Dec 29 2016 21:27
  • Dec 29 2016 21:27
  • Dec 29 2016 21:27
  • Dec 29 2016 21:27
  • Dec 29 2016 21:27
  • Dec 29 2016 21:27
  • Dec 29 2016 21:27
  • Dec 29 2016 21:27
  • Dec 29 2016 21:27
  • Dec 29 2016 21:27
  • Dec 29 2016 21:27
  • Dec 29 2016 21:27
  • Dec 29 2016 21:27
broweratcognitecdotcom
@broweratcognitecdotcom
and "@types/lodash": "4.14.121"
illuminist
@illuminist
No, I mean what kind of error it reported to you.
broweratcognitecdotcom
@broweratcognitecdotcom
vs code?
illuminist
@illuminist
Yes. You said it gave you an error so you need to give me a detail of the error.
broweratcognitecdotcom
@broweratcognitecdotcom
it's not showing an error right now, but I am not sure.. it did before but sometimes vs code doesn't update very quickly
doesn't show any error... vs code is sometimes sketchy when it comes to underlining thngs in red that are errors
@illuminist pretty sure it was the same as the build error I get
wait it came back
illuminist
@illuminist
Just hover your mouse over the red line
broweratcognitecdotcom
@broweratcognitecdotcom
[ts] Module '"/build/brower/gitrepos/FaceVACS-VideoScan-WA-Development/src/web-apps/angular/node_modules/@types/lodash/cloneDeep"' resolves to a non-module entity and cannot be imported using this construct.
module "/build/brower/gitrepos/FaceVACS-VideoScan-WA-Development/src/web-apps/angular/node_modules/@types/lodash/cloneDeep"
and:
[ts] Module '"/build/brower/gitrepos/FaceVACS-VideoScan-WA-Development/src/web-apps/angular/node_modules/@types/lodash/cloneDeep"' has no exported member 'cloneDeep'.
import cloneDeep
I've been reading all morning but cannot find how to import just the stuff we need
illuminist
@illuminist
It's kind a strange that you has node_modules folder nested inside src folder
broweratcognitecdotcom
@broweratcognitecdotcom
@illuminist that is just our own internal folder structure. angular is the root for the front end stuff
there are python folders too
project root for me is angular
I'm certain that has nothing to do with these errors and what i am trying to do
illuminist
@illuminist
One solution I had in codesandbox is you need to set "esModuleInterop": true in tsconfig.json file
broweratcognitecdotcom
@broweratcognitecdotcom
the errors I pasted above come from this usage
import { cloneDeep } from 'lodash/cloneDeep';
import { forEach } from 'lodash/forEach';
illuminist
@illuminist
Uh
And no curly blace, please
broweratcognitecdotcom
@broweratcognitecdotcom
now the error is:
[ts] Module '"/build/brower/gitrepos/FaceVACS-VideoScan-WA-Development/src/web-apps/angular/node_modules/@types/lodash/cloneDeep"' has no default export.
import cloneDeep
and:
with:
import cloneDeep from 'lodash/cloneDeep';
import forEach from 'lodash/forEach';
those are vscode errors
illuminist
@illuminist
And set "esModuleInterop": true in tsconfig.json file
broweratcognitecdotcom
@broweratcognitecdotcom
trying...
it builds
vscode still shows the error, but maybe it's taking a while to update and go away?
illuminist
@illuminist
I guess it takes time
broweratcognitecdotcom
@broweratcognitecdotcom
Thank you very much.
illuminist
@illuminist
Glad to solve the problem
broweratcognitecdotcom
@broweratcognitecdotcom
@illuminist What does it mean that vs code doesn't remove the error after a while? should be gone by now right?
illuminist
@illuminist
Have you tried to close and open vscode again?
broweratcognitecdotcom
@broweratcognitecdotcom
trying..
works
Thank you again very very much
illuminist
@illuminist
Ok that means it doesn't automatically reload tsconfig file
broweratcognitecdotcom
@broweratcognitecdotcom
@illuminist is there a way to make it do that?
illuminist
@illuminist
Not sure, I don't use vscode
broweratcognitecdotcom
@broweratcognitecdotcom
ok. but thanks!!! You lightened my day
illuminist
@illuminist
Thank you, you're welcome!
Chinedum Ukejianya
@cukejianya
Hey Everyone. Not sure if this is the right room for this, but how do I run test? It seems that the CONTRIBUTING.md is not quite up to date since I tried the commands and files (that no longer exist)
illuminist
@illuminist
@cukejianya Run a command npm run test ?
Chinedum Ukejianya
@cukejianya
@illuminist I was in the wrong branch. I think with the work being done for v5, npm run test doesnt work on the master branch. I had to switch to branch 4.17.15-post to get the test working again. However, thank you for responding and helping.