Skip to content

Commit 72ad4f3

Browse files
author
FalkWolsky
committed
Fixing Remote Comp Loader
1 parent 990f03b commit 72ad4f3

File tree

1 file changed

+3
-4
lines changed
  • client/packages/lowcoder/src/comps/comps/remoteComp

1 file changed

+3
-4
lines changed

client/packages/lowcoder/src/comps/comps/remoteComp/loaders.tsx

+3-4
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@ async function npmLoader(
1414
console.log("remoteInfo: ", remoteInfo);
1515

1616
// Falk: removed "packageVersion = "latest" as default value fir packageVersion - to ensure no automatic version jumping.
17-
17+
const localPackageVersion = remoteInfo.packageVersion || "latest";
1818
const { packageName, packageVersion, compName } = remoteInfo;
19-
const entry = `${NPM_PLUGIN_ASSETS_BASE_URL}/${packageName}@${packageVersion}/index.js`;
20-
// const entry = `../../../../../public/package/index.js`;
21-
// console.log("Entry", entry);
19+
const entry = `${NPM_PLUGIN_ASSETS_BASE_URL}/${packageName}@${localPackageVersion}/index.js`;
20+
2221
try {
2322
const module = await import(/* webpackIgnore: true */ entry);
2423
const comp = module.default?.[compName];

0 commit comments

Comments
 (0)