defiant.js icon indicating copy to clipboard operation
defiant.js copied to clipboard

Working with Vue.js

Open chris-canipe opened this issue 7 years ago • 8 comments

Should this be able to work with Vue.js?

I ran npm install defiant.js and the library appears under "dependencies" in package.json.

I've tried the following approaches:

Import import defiant from 'defiant.js' results in "This dependency was not found." I thought "defiant" may be incorrect, but it doesn't seem to matter — the issue appears to be with 'defiant.js'.

Plugin I've also tried using it as a plugin in webpack.dev.conf.js and the result is "'Defiant' is not defined".

new webpack.DefinePlugin({
  Defiant: 'defiant.js'
})

I've seen the issues about getting this library working in npm. Is this related?

chris-canipe avatar Jun 05 '17 15:06 chris-canipe

I am having the same problem in a React project.

studiojms avatar Jul 18 '17 13:07 studiojms

I guess there is a need for a wrapper...could any of you make a pull request?

hbi99 avatar Jul 18 '17 13:07 hbi99

I assume there is no wrapper / solution yet?

I'd like to use it in a Vue project as well.

arjanski avatar Jan 08 '19 15:01 arjanski

I will do this in next couple of days

hbi99 avatar Jan 09 '19 12:01 hbi99

Fantastic! Unfortunately my JS skills aren't good enought to help or do this alone, but I will gladly promote defiant.js in my network once I can use it.

arjanski avatar Jan 09 '19 12:01 arjanski

Cool...will get back to you regarding this. Meanwhile, i am releasing a new library that might be intressting; jupyter.js

Http://defiantjs.com/jupyter

hbi99 avatar Jan 09 '19 13:01 hbi99

Any progress on this issue? I cannot use defiant.js in my react project. Thanks for your great work.

WilliamAnthony avatar Mar 06 '20 09:03 WilliamAnthony

Hi. Sorry for my bad english :) Try to specify full path to necessary file inside node_modules dir like this: Screenshot_2

P.S. No need to save import's result in variable I think

FeelineLord avatar Jun 05 '20 00:06 FeelineLord