vslinko / deno-csv

Streaming API for reading and writing CSV for https://deno.land/
MIT License
51 stars 5 forks source link

"@std/io/iterate-reader" not in import map #27

Closed pasha-bolokhov closed 1 month ago

pasha-bolokhov commented 3 months ago

A new compilation error, should be super easy to fix

error: Relative import path "@std/io/iterate-reader" not prefixed with / or ./ or ../ and not in import map from "https://deno.land/x/csv@v1.0.2/reader.ts"
    at https://deno.land/x/csv@v1.0.2/reader.ts:6:31
9oelM commented 3 months ago

Same problem. How do we get around this issue?

vslinko commented 3 months ago

hi! thank you for feedback, but I can't reproduce the issue. could you please create a sample project with the issue?

pasha-bolokhov commented 3 months ago

This is a short as it is:

import {
 readCSVObjects,
 writeCSVObjects,
} from "https://deno.land/x/csv@v1.0.2/mod.ts";

Running on Deno of a few latest versions, including 1.44.4 and 1.45.2

Perhaps we should switch all imports to jsr?

vslinko commented 1 month ago

yes, looks like it's impossible to import jsr modules via http https://jsr.io/docs/migrate-x-to-jsr#https-modules-supported-in-deno-not-in-jsr-packages

please, use deno add @vslinko/csv and replace all imports to import {} from 'jsr:@vslinko/csv'