Skip to content

Browserify problem with 0.9.3 (unminified) #160

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
lithiumjake opened this issue Mar 5, 2014 · 4 comments
Closed

Browserify problem with 0.9.3 (unminified) #160

lithiumjake opened this issue Mar 5, 2014 · 4 comments

Comments

@lithiumjake
Copy link

When using the minified version of 0.9.3 from npm, browserify works fine. When using the unminified file (vue.js), I get the following error.

Error: module "./config" not found from "/home/jake/code/pomodoro/src/scripts/vue.js"

@bpierre
Copy link

bpierre commented Mar 5, 2014

What is in your vue.js file? With Browserify, you should require src/main.js, or just 'vue' if Vue is in the node_modules directory.

@lithiumjake
Copy link
Author

it's the vue.js file from npm, moved to a different directory, used with require('./vue"). Pulling it from node_modules with require('vue') does work.

@bpierre
Copy link

bpierre commented Mar 5, 2014

I think the problem has always been here with the dist version:

$ git checkout v0.7.0
$ git browserify dist/vue.js
Error: module "./config" not found from "/Users/pierre/src/vue/dist/vue.js"

Is there a reason why you cannot use require('./vue/src/main.js') or require('vue')?

@lithiumjake
Copy link
Author

there is no particular reason. closed :)

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

2 participants