Skip to content

Commit

Permalink
fix: convert URL to string
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Feb 6, 2025
1 parent 0b45d4a commit e3606aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/myst-cli/src/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export async function loadPlugins(session: ISession): Promise<ValidatedMystPlugi
let module: any;
const pathURL = pathToFileURL(path);
try {
module = await import(pathURL);
module = await import(pathURL.toString());
} catch (error) {
session.log.debug(`\n\n${(error as Error)?.stack}\n\n`);
addWarningForFile(session, path, `Error reading plugin: ${error}`, 'error', {
Expand Down

0 comments on commit e3606aa

Please sign in to comment.