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

Failed to import components #45

Closed
aalimovs opened this issue Jul 27, 2024 · 1 comment
Closed

Failed to import components #45

aalimovs opened this issue Jul 27, 2024 · 1 comment

Comments

@aalimovs
Copy link
Contributor

aalimovs commented Jul 27, 2024

Fresh install of v0.5.1 breaks as soon as you add a simple component e.g. components/foobar.hbs and then include it in application.hbs with <Foobar />.

[plugin:vite:import-analysis] Failed to resolve import "#embroider_compat/components/foobar" from "tmp/rewritten-app/templates/application.hbs". Does the file exist?
/Users/aalimovs/WebstormProjects/automations/admin/tmp/rewritten-app/templates/application.hbs:1:22
1  |  import foobar_ from "#embroider_compat/components/foobar";
   |                       ^
2  |  import { createTemplateFactory } from "@ember/template-factory";
3  |  export default createTemplateFactory(

image

@ef4
Copy link
Contributor

ef4 commented Aug 1, 2024

Fixed in #47

@ef4 ef4 closed this as completed Aug 1, 2024
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