defiant.js
defiant.js copied to clipboard
Working with Vue.js
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?
I am having the same problem in a React project.
I guess there is a need for a wrapper...could any of you make a pull request?
I assume there is no wrapper / solution yet?
I'd like to use it in a Vue project as well.
I will do this in next couple of days
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.
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
Any progress on this issue? I cannot use defiant.js in my react project. Thanks for your great work.
Hi. Sorry for my bad english :) Try to specify full path to necessary file inside node_modules dir like this:
P.S. No need to save import's result in variable I think