D
Deno

help

Simple test, lots of type errors

IIndustrial10/22/2022
Hi! I made a library for Deno (https://github.com/Industrial/fresh-emotion) and am now trying to add tests. When I run this test: https://github.com/Industrial/fresh-emotion/blob/main/mod.test.ts I get this output:
error: TS6200 [ERROR]: Definitions of the following identifiers conflict with those in another file: CompileError, Global, Instance, LinkError, Memory, Module, RuntimeError, Table, ImportExportKind, TableKind, ValueType, ExportValue, Exports, ImportValue, ModuleImports, Imports, BufferSource, ErrorEvent, PromiseRejectionEvent, Worker, PerformanceEntryList, Performance, PerformanceEntry, PerformanceMark, PerformanceMeasure, CustomEvent
interface AddEventListenerOptions extends EventListenerOptions {
~~~~~~~~~
at asset:///lib.dom.d.ts:26:1

Conflicts are in this file.
declare namespace WebAssembly {
~~~~~~~
at asset:///lib.deno.shared_globals.d.ts:17:1

TS6200 [ERROR]: Definitions of the following identifiers conflict with those in another file: DOMException, Event, EventTarget, EventListenerOrEventListenerObject, ProgressEvent, AbortController, BlobPart, Blob, File, ReadableStreamReadResult, ReadableStreamReader, size, MessageEvent, Transferable, MessageChannel, MessagePort
interface AddEventListenerOptions extends EventListenerOptions {
~~~~~~~~~
at asset:///lib.dom.d.ts:26:1

Conflicts are in this file.
declare class DOMException extends Error {
~~~~~~~
at asset:///lib.deno.web.d.ts:9:1
error: TS6200 [ERROR]: Definitions of the following identifiers conflict with those in another file: CompileError, Global, Instance, LinkError, Memory, Module, RuntimeError, Table, ImportExportKind, TableKind, ValueType, ExportValue, Exports, ImportValue, ModuleImports, Imports, BufferSource, ErrorEvent, PromiseRejectionEvent, Worker, PerformanceEntryList, Performance, PerformanceEntry, PerformanceMark, PerformanceMeasure, CustomEvent
interface AddEventListenerOptions extends EventListenerOptions {
~~~~~~~~~
at asset:///lib.dom.d.ts:26:1

Conflicts are in this file.
declare namespace WebAssembly {
~~~~~~~
at asset:///lib.deno.shared_globals.d.ts:17:1

TS6200 [ERROR]: Definitions of the following identifiers conflict with those in another file: DOMException, Event, EventTarget, EventListenerOrEventListenerObject, ProgressEvent, AbortController, BlobPart, Blob, File, ReadableStreamReadResult, ReadableStreamReader, size, MessageEvent, Transferable, MessageChannel, MessagePort
interface AddEventListenerOptions extends EventListenerOptions {
~~~~~~~~~
at asset:///lib.dom.d.ts:26:1

Conflicts are in this file.
declare class DOMException extends Error {
~~~~~~~
at asset:///lib.deno.web.d.ts:9:1
And many more errors like it. How do I solve this? Is this due to Fresh / Preact ?
GitHub
GitHub - Industrial/fresh-emotion: Emotion CSS-in-JS for Fresh
Emotion CSS-in-JS for Fresh. Contribute to Industrial/fresh-emotion development by creating an account on GitHub.
GitHub
fresh-emotion/mod.test.ts at main · Industrial/fresh-emotion
Emotion CSS-in-JS for Fresh. Contribute to Industrial/fresh-emotion development by creating an account on GitHub.

Looking for more? Join the community!