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

Lines changed: 3 additions & 4 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy