Alister
Alister
DDeno
Created by Alister on 10/17/2024 in #help
How to import library in Edge Function ?
okay it works with 'npm:google-auth-library'
4 replies
DDeno
Created by Alister on 10/17/2024 in #help
How to import library in Edge Function ?
Hey @marvinh. , thanks for you answer 😉 I did what you said but when I tried to deploy the function, all is good, buit when I tried to use it I have this error :
worker boot error: Relative import path "google-auth-library" not prefixed with / or ./ or ../
worker boot error: Relative import path "google-auth-library" not prefixed with / or ./ or ../
I used this import to the test :
import { JWT } from 'google-auth-library';
import { GoogleSpreadsheet } from 'google-spreadsheet';
import { JWT } from 'google-auth-library';
import { GoogleSpreadsheet } from 'google-spreadsheet';
(I checked I jave deno 2.0.0 )
4 replies