drashland / wocket

A WebSocket library for Deno
MIT License
104 stars 4 forks source link

Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type' #113

Closed buttercubz closed 3 years ago

buttercubz commented 3 years ago

using deno 1.7

image

buttercubz commented 3 years ago

ok seems to work, apparently it was a problem with the cache

ebebbington commented 3 years ago

@buttercubz I'd recommend using deno.land or nest.land versioned imports because it can happen that we add a bug into master, and your app will fail without you even changing any code:

import { Server } from "https://deno.land/x/wocket@v0.6.2/mod.ts"
import { Server } from "https://x.nest.land/wocket@0.6.2/mod.ts"
buttercubz commented 3 years ago

@buttercubz I'd recommend using deno.land or nest.land versioned imports because it can happen that we add a bug into master, and your app will fail without you even changing any code:

import { Server } from "https://deno.land/x/wocket@v0.6.2/mod.ts"
import { Server } from "https://x.nest.land/wocket@0.6.2/mod.ts"

oh thanks