Skip to content

Update components.md #1147

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

Merged
merged 1 commit into from
Oct 2, 2017
Merged

Update components.md #1147

merged 1 commit into from
Oct 2, 2017

Conversation

tomwang1013
Copy link
Contributor

To fix circular reference in webpack, change require('./tree-folder-contents.vue').default to require('./tree-folder-contents.vue')
my env:

nodejs: 6.9.1
vuejs: 2.3.4
webpack: 2.7.1

To fix circular reference in webpack, change `require('./tree-folder-contents.vue').default` to `require('./tree-folder-contents.vue')`
my env:
```
nodejs: 6.9.1
vuejs: 2.3.4
webpack: 2.7.1
```
@chrisvfritz
Copy link
Contributor

Hmm, it hasn't been necessary in my projects to use .default with .vue files for some time, but I don't remember which piece was responsible for that change (e.g. upgraded Webpack, vue-loader, or a config change). I'll keep this open for now, then add a note when we find out.

@chrisvfritz chrisvfritz merged commit 7da674e into vuejs:master Oct 2, 2017
@tomwang1013 tomwang1013 deleted the patch-1 branch October 2, 2017 00:30
kazupon pushed a commit to kazupon/vuejs.org that referenced this pull request Nov 24, 2017
To fix circular reference in webpack, change `require('./tree-folder-contents.vue').default` to `require('./tree-folder-contents.vue')`
my env:
```
nodejs: 6.9.1
vuejs: 2.3.4
webpack: 2.7.1
```
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

Successfully merging this pull request may close these issues.

2 participants