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

Build fail; vue import .ts #841

Closed
MrDeshaies opened this issue Nov 10, 2021 · 0 comments · Fixed by #842
Closed

Build fail; vue import .ts #841

MrDeshaies opened this issue Nov 10, 2021 · 0 comments · Fixed by #842
Assignees
Labels
bug Something isn't working
Milestone

Comments

@MrDeshaies
Copy link
Contributor

With the upgraded typescript and vue, the builds now fail to deploy. We get the error below. MultiChoiceValueResult.vue and Result.vue need to change their import from

import { getValue } from "@/store.ts"; // BAD!
to
import { getValue } from "@/store";

ERROR:

ERROR in /home/runner/work/aia-eia-js/aia-eia-js/src/components/MultiChoiceValueResult.vue(24,26):
24:26 An import path cannot end with a '.ts' extension. Consider importing '@/store.js' instead.
    22 | import { Component, Vue, Prop } from "vue-property-decorator";
    23 | import Modifier from "@/components/Modifier.vue";
  > 24 | import { getValue } from "@/store.ts";
       |                          ^
    25 | import MultiChoiceResult from "@/components/MultiChoiceResult.vue";
    26 | 
    27 | @Component({

 error  in /home/runner/work/aia-eia-js/aia-eia-js/src/components/Result.vue

ERROR in /home/runner/work/aia-eia-js/aia-eia-js/src/components/Result.vue(29,26):
29:26 An import path cannot end with a '.ts' extension. Consider importing '@/store.js' instead.
    27 | import MultiChoiceResult from "@/components/MultiChoiceResult.vue";
    28 | import MultiChoiceValueResult from "@/components/MultiChoiceValueResult.vue";
  > 29 | import { getValue } from "@/store.ts";
       |                          ^
    30 | 
    31 | @Component({
    32 |   components: 
@MrDeshaies MrDeshaies added the bug Something isn't working label Nov 10, 2021
@MrDeshaies MrDeshaies added this to the 0.9.1 milestone Nov 30, 2021
@MrDeshaies MrDeshaies self-assigned this Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant