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

Can't resolve 'stimulus-autocomplete' #83

Closed
jaredmoody opened this issue Oct 11, 2021 · 2 comments
Closed

Can't resolve 'stimulus-autocomplete' #83

jaredmoody opened this issue Oct 11, 2021 · 2 comments

Comments

@jaredmoody
Copy link

Upgrading to 3.0.0-rc2 gives me this error:

Module not found: Error: Can't resolve 'stimulus-autocomplete' in '/Users/jaredmoody/code/redacted'
  resolve 'stimulus-autocomplete' in '/Users/jaredmoody/code/app.jetbuilt.com/app/javascript/controllers/projects'
  Parsed request is a module

I'm not the most familiar with JS modules, but suspect 455f36a broke something here.

@afcapel
Copy link
Owner

afcapel commented Oct 11, 2021

@jaredmoody you may need to update your import to

import { Autocomplete } from 'stimulus-autocomplete/src/autocomplete'

See https://github.com/afcapel/stimulus-autocomplete#usage

@jaredmoody
Copy link
Author

ah, I missed that update to the README, 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

2 participants