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

not working with latest vite project #107

Closed
carl-jin opened this issue Mar 17, 2021 · 6 comments
Closed

not working with latest vite project #107

carl-jin opened this issue Mar 17, 2021 · 6 comments

Comments

@carl-jin
Copy link

got following error

[vite] Internal server error: Failed to resolve import "./Emoji". Does the file exist?

thats regular issue check this out vitejs/vite#178

just add .vue end of file path

export { default as Anchors } from './anchors.vue'
export { default as Category } from './category.vue'
export { default as Preview } from './preview.vue'
export { default as Search } from './search.vue'
export { default as Skins } from './skins.vue'
export { default as Emoji } from './Emoji.vue'
export { default as Picker } from './Picker.vue'
``
@carl-jin
Copy link
Author

serebrov added a commit that referenced this issue Mar 20, 2021
@serebrov
Copy link
Owner

@carl-jin I've just published version 9.1.0 (also includes emoji v13). Here is the change - https://github.com/serebrov/emoji-mart-vue/pull/110/files, I added ".vue" extensions as you suggested.

Could you help testing it?

@carl-jin
Copy link
Author

thats my pleasure, let me check it out

@carl-jin
Copy link
Author

got an error,

SyntaxError: The requested module '/node_modules/emoji-mart-vue-fast/src/utils/data.js' does not provide an export named 'buildSearch'

change following code for fast fix it

module.exports = { buildSearch, compress, uncompress }

export { buildSearch, compress, uncompress }
// module.exports = { buildSearch, compress, uncompress }

@carl-jin
Copy link
Author

@carl-jin I've just published version 9.1.0 (also includes emoji v13). Here is the change - https://github.com/serebrov/emoji-mart-vue/pull/110/files, I added ".vue" extensions as you suggested.

Could you help testing it?

serebrov added a commit that referenced this issue Mar 20, 2021
serebrov added a commit that referenced this issue Mar 20, 2021
[#107] Extract compress method (used by build script)
@serebrov
Copy link
Owner

@carl-jin I published 9.1.2 with the export fix.

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