Skip to content
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

Working with Vue.js #85

Open
chris-canipe opened this issue Jun 5, 2017 · 8 comments
Open

Working with Vue.js #85

chris-canipe opened this issue Jun 5, 2017 · 8 comments

Comments

@chris-canipe
Copy link

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?

@studiojms
Copy link

I am having the same problem in a React project.

@hbi99
Copy link
Owner

hbi99 commented Jul 18, 2017

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

@arjanski
Copy link

arjanski commented Jan 8, 2019

I assume there is no wrapper / solution yet?

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

@hbi99
Copy link
Owner

hbi99 commented Jan 9, 2019

I will do this in next couple of days

@arjanski
Copy link

arjanski commented Jan 9, 2019

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.

@hbi99
Copy link
Owner

hbi99 commented Jan 9, 2019

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

@WilliamAnthony
Copy link

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

@FeelineLord
Copy link

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

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

No branches or pull requests

6 participants