clarifai-javascript icon indicating copy to clipboard operation
clarifai-javascript copied to clipboard

TypeError: clarifai__WEBPACK_IMPORTED_MODULE_8___default.a.app is not a constructor

Open alitarraf opened this issue 5 years ago • 1 comments

Hi, I installed clarify with npm install clarifai. However I get the following error in my project.

  • TypeError: clarifai__WEBPACK_IMPORTED_MODULE_8___default.a.app is not a constructor image

  • I have these packages installed image

  • Also there is type declaration warning. image

  • I am on a windows 10 pro intel machine.

I tried putting curly brackets import {Clarifai} from 'clarifai' , I get an app error. I tried const Clarifai = require('clarifai');, I get the same webpack error.

Any idea how I can solve this issue?

Thanks

alitarraf avatar Nov 26 '20 13:11 alitarraf

Were you able to find the solution? I'm having the same problem

MattEspoz avatar Jun 01 '22 11:06 MattEspoz