Replies: 1 comment
-
Hi @vbp-2610. As you can see in Actions pipelines, everything runs smoothly if you follow the contributing guide. I suppose either of:
Please try running |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Guys,
I have following version in my mac book
node ->v16.8.0
npm ->7.21.0
tsc->4.5.0 (type script)
when I am running npm run build, I am getting following issue
@fingerprintjs/[email protected] build
./src/index.ts → dist/fp.js, dist/fp.min.js, dist/fp.umd.js, dist/fp.umd.min.js...
(!) Plugin typescript: @rollup/plugin-typescript TS2345: Argument of type 'unknown' is not assignable to parameter of type 'Readonly'.
playground/index.ts: (55:37)
55 const errorData = errorToObject(error)
(!) Plugin typescript: @rollup/plugin-typescript TS2322: Type '(value: unknown) => void' is not assignable to type '() => void'.
resources/content_blocking/make_selectors_tester.ts: (37:50)
37 const abortPromise = new Promise((resolve) => (abort = resolve))
(!) Plugin typescript: @rollup/plugin-typescript TS2571: Object is of type 'unknown'.
resources/content_blocking/make_selectors_tester.ts: (45:89)
45 throw new Error(
Failed to fetch filter "${filter.title}" (${filter.file}): ${error.message}
)resources/content_blocking/selectors_tester.ts: (52:34)
52 display.value =
${error}\n${error.stack}
resources/content_blocking/utils.ts: (85:76)
85 throw new Error(
Failed to fetch a sub-filter (${subFilterURL}): ${error.message}
)(!) Plugin typescript: @rollup/plugin-typescript TS2339: Property 'zoom' does not exist on type 'CSSStyleDeclaration'.
src/sources/font_preferences.ts: (151:24)
151 iframeBody.style.zoom =
${1 / iframeWindow.devicePixelRatio}
src/sources/font_preferences.ts: (153:24)
153 iframeBody.style.zoom = 'reset'
(!) Plugin typescript: @rollup/plugin-typescript TS2551: Property 'msMaxTouchPoints' does not exist on type 'Navigator'. Did you mean 'maxTouchPoints'?
src/sources/touch_support.ts: (25:16)
25 } else if (n.msMaxTouchPoints !== undefined) {
node_modules/typescript/lib/lib.dom.d.ts:9550:14
src/sources/touch_support.ts: (26:24)
26 maxTouchPoints = n.msMaxTouchPoints
node_modules/typescript/lib/lib.dom.d.ts:9550:14
(!) Plugin typescript: @rollup/plugin-typescript TS2322: Type 'unknown' is not assignable to type 'boolean'.
src/utils/async.ts: (20:3)
20 return value && typeof (value as PromiseLike).then === 'function'
(!) Plugin typescript: @rollup/plugin-typescript TS2794: Expected 1 arguments, but got 0. Did you forget to include 'void' in your type argument to 'Promise'?
src/utils/dom.ts: (33:9)
33 _resolve()
node_modules/typescript/lib/lib.es2015.promise.d.ts:33:34
created dist/fp.js, dist/fp.min.js, dist/fp.umd.js, dist/fp.umd.min.js in 3.3s
./src/index.ts → dist/fp.cjs.js, dist/fp.esm.js...
created dist/fp.cjs.js, dist/fp.esm.js in 247ms
./src/index.ts → dist/fp.d.ts...
src/sources/touch_support.ts(25,16): error TS2551: Property 'msMaxTouchPoints' does not exist on type 'Navigator'. Did you mean 'maxTouchPoints'?
src/sources/touch_support.ts(26,24): error TS2551: Property 'msMaxTouchPoints' does not exist on type 'Navigator'. Did you mean 'maxTouchPoints'?
src/sources/font_preferences.ts(151,24): error TS2339: Property 'zoom' does not exist on type 'CSSStyleDeclaration'.
src/sources/font_preferences.ts(153,24): error TS2339: Property 'zoom' does not exist on type 'CSSStyleDeclaration'.
src/utils/async.ts(20,3): error TS2322: Type 'unknown' is not assignable to type 'boolean'.
[!] (plugin dts) Error: Could not load /Library/WebServer/Documents/fingerprint2/src/sources/touch_support.ts (imported by src/sources/index.ts): Failed to compile. Check the logs above.
Error: Could not load /Library/WebServer/Documents/fingerprint2/src/sources/touch_support.ts (imported by src/sources/index.ts): Failed to compile. Check the logs above.
please help to fix this issue ...
Beta Was this translation helpful? Give feedback.
All reactions