We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d90fb8 commit 77e202fCopy full SHA for 77e202f
packages/sandpack-core/src/npm/dynamic/fetch-protocols/file.ts
@@ -17,7 +17,7 @@ export class FileFetcher implements FetchProtocol {
17
private async getUrlFromFileProtocol(version: string) {
18
const tarLocation = normalizePath(version.replace(/^file:/, ''));
19
20
- const module = this.manager.transpiledModules[tarLocation];
+ const module = this.manager.transpiledModules['/' + tarLocation];
21
22
if (!module) {
23
throw new Error(`Could not find ${version} while resolving dependency`);
0 commit comments