Skip to content

Commit

Permalink
fix: [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string…
Browse files Browse the repository at this point in the history
…. Received an instance of URL
  • Loading branch information
adyshev authored and mihar-22 committed Feb 1, 2022
1 parent ac3beae commit 1384839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as svelte from 'svelte/compiler'

import { getSvelteConfig } from './svelteconfig.js'

const dynamicImport = async (filename) => import(pathToFileURL(filename))
const dynamicImport = async (filename) => import(pathToFileURL(filename).toString())

/**
* Jest will only call this method when running in ESM mode.
Expand Down

0 comments on commit 1384839

Please sign in to comment.