question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Release 0.1.3 missing properties

See original GitHub issue

Hi, I’ve been having some issues when moving from 0.1.2 to 0.1.3

ERROR in D:\SourceCode\GitRepos\GBD.WebTemplates.AspNetCore\src\AspNetCore.Vue.Foundation1\ClientApp\common\svgicon.ts
./ClientApp/common/svgicon.ts
[tsl] ERROR in D:\SourceCode\GitRepos\GBD.WebTemplates.AspNetCore\src\AspNetCore.Vue.Foundation1\ClientApp\common\svgicon.ts(13,30)
      TS2345: Argument of type 'FunctionalComponentOptions<Record<string, any>, PropsDefinition<Record<string, any>>>' is not assignable to parameter of type 'ComponentOptions<Vue, DefaultData<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Record<string, any>>, Record<string, any>>'.
  Types of property 'render' are incompatible.
    Type '((this: undefined, createElement: CreateElement, context: RenderContext<Record<string, any>>) => VNode | VNode[]) | undefined' is not assignable to type '((createElement: CreateElement, hack: RenderContext<Record<string, any>>) => VNode) | undefined'.
      Type '(this: undefined, createElement: CreateElement, context: RenderContext<Record<string, any>>) => VNode | VNode[]' is not assignable to type '(createElement: CreateElement, hack: RenderContext<Record<string, any>>) => VNode'.
        Type 'VNode | VNode[]' is not assignable to type 'VNode'.
          Type 'VNode[]' is missing the following properties from type 'VNode': isRootInsert, isComment

Typically the way I’m using it is

import Vue from "vue";
import { faCog, faFile, faFolder, faFolderOpen, faSpinner } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";

library.add(faSpinner, faCog, faFolder, faFolderOpen, faFile);
Vue.component("fa-icon", FontAwesomeIcon);

This works fine under 0.1.2 but breaks under 0.1.3
As an example code base

I’m guessing it has something to do with the addition of the types for typescript

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Alexander-Karstencommented, Dec 19, 2018

Also experiencing the same issue here

0reactions
meteorlxycommented, Jan 26, 2019

I added types declaration files in 0.1.3.

That wroked fine with Vue 2.5.17, but failed with Vue 2.5.18+ due to https://github.com/vuejs/vue/compare/v2.5.17...v2.5.18#diff-23d7799dcc9e9be419d28a15348b0d99L116

I tested on Vue 2.5.17 and did not meet this error. 😅 Sorry for introduced this issue.


Notice that Vue 2.5.18 released on 8 Dec 2018, and vue-fontawesome 0.1.3 released on 4 Dec 2018 😅

This might be an issue about vue’s type declaration, as it does not export PropsDefinition by default.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Arma 3: Named Properties - Bohemia Interactive Community
Determines how fast LODs are being switched. 0.1 means LODs will be switched very fast, 100 there will be barely no LOD switching....
Read more >
Find a Missing Probability of a Probability Distribution Table
This video explains how to find a missing probability from a probability distribution table.
Read more >
Set properties of a qp.Batch - Quantipy - Read the Docs
Now you will get to know how the missing information for the Link s are defined and which specific views ... Cluster by...
Read more >
Ethproxy Helm Chart - Datree
Install Chart. helm install my-ethproxy ethersphere/ethproxy --version 0.1.3 ... Ensure each container image has a pinned (tag) version. 1 occurrences:.
Read more >
Why am I getting a "401 Unauthorized" error in Maven?
... user/pass problems--it's no surprise that I was unable to figure this out on my own. Changing the version to 0.1.3 brings me...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found