Issue
I was running ionic serve in local computer and got following error
It was working fine earlier, also I didn't make any changes to code whatsoever. I don't understand what is causing this error.
I tried following
- Freshly clone project from git repo
- Re-install npm dependencies
- Un-install and re-install ionic globally
None of the above methods worked.
Solution
Solved this bug,
One of the components contained lang typescript where as ionic system is using javascript.
SignIn Component:
<script lang="ts">
//logic
</script>
I just removed lang and ionic compiled files properly.
Earlier versions didn't track this error.I recently upgraded ionic version to 6.17.1.
Answered By - A.Z
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.