Skip to content

1.0.4 has a bug #2

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

Closed
xueweiyema opened this issue Dec 21, 2016 · 10 comments
Closed

1.0.4 has a bug #2

xueweiyema opened this issue Dec 21, 2016 · 10 comments

Comments

@xueweiyema
Copy link

ERROR in .//v-tooltip/dist/v-tooltip.js
Module not found: Error: Cannot resolve module 'Tooltip' in xxxxxxxxxx\node_modules\v-tooltip\dist
@ ./
/v-tooltip/dist/v-tooltip.js 1:97-115

I uninstall 1.0.4 and re-install 1.0.0. it works.

@Akryum
Copy link
Owner

Akryum commented Dec 21, 2016

How is your import statement?

@xueweiyema
Copy link
Author

Hello,
import VTooltip from 'v-tooltip'
Vue.use(VTooltip);

@xueweiyema
Copy link
Author

Now , I use npm install --save [email protected]

@Akryum
Copy link
Owner

Akryum commented Dec 22, 2016

Could you try import VTooltip from 'v-tooltip/src'?

@xueweiyema
Copy link
Author

I try it, I still can't make it work.
import VTooltip from 'v-tooltip/src'
Vue.use(VTooltip)

ERROR in ./src/home/home.js
Module not found: Error: Cannot resolve module 'v-tooltip/src' in D:\Excellent\frontend\ciibi\src\home
 @ ./src/home/home.js 23:11-35

@Akryum
Copy link
Owner

Akryum commented Dec 23, 2016

What's the list of files in node_modules/v-tooltip and the result of npm list?

@ChrisTerBeke
Copy link

Same issue here. 1.0.0 works perfectly, later versions give an error:

Module not found: Error: Cannot resolve module 'Tooltip' in ./node_modules/v-tooltip/dist

@Akryum
Copy link
Owner

Akryum commented Dec 27, 2016

Since the theter, tether-drop and tether-tooltip packages are not bundled in the compiled dist file, you have to include them in the page: jsfiddle
But these are declared as dependencies and should be installed alongside v-tooltip, so if you import the source file in the npm package, import VTooltip from 'v-tooltip/src/index.js', it should work.
Note that using latest versions of webpack, import VTooltip from 'v-tooltip' should work too (it uses the module field in package.json).

Please post you npm list and your setup (are you using webpack? browserify? etc.) here if you are still facing the issue.

@dweldon
Copy link

dweldon commented Jan 3, 2017

I tried import VTooltip from 'v-tooltip/src/index.js' and that didn't work. I suspect this is a webpack issue. If you create a new webpack-boilerplate project, accept the defaults, and attempt to use this package you'll get the error.

@Akryum Akryum closed this as completed in a970d2f Jan 3, 2017
@xueweiyema
Copy link
Author

xueweiyema commented Jan 4, 2017

1.0.5 is excellent ! It fixs this bug! Thank you!

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

4 participants