Comments (5)
Thanks for filing. We will investigate and let you know when we have a fix.
from builder.
Sorry for the ping, any updates on this @samijaber ? Still seeing this logs even with the latest vue-sdk:
[Builder.io]: isolated-vm import error. Error: Cannot find module 'isolated-vm'
Require stack:
- /var/task/node_modules/@builder.io/sdk-vue/lib/node/index-xwOams1O.js
at Module._resolveFilename (node:internal/modules/cjs/loader:1145:15)
at Module._load (node:internal/modules/cjs/loader:986:27)
at /opt/rust/nodejs.js:1:11508
at Function.$t (/opt/rust/nodejs.js:1:11878)
at K.e.<computed>.J._load (/opt/rust/nodejs.js:1:11478)
at Module.require (node:internal/modules/cjs/loader:1233:19)
at Hook._require.Module.require (/var/task/node_modules/require-in-the-middle/index.js:167:34)
at require (node:internal/modules/helpers:179:18)
at getIvm (file:///var/task/node_modules/@builder.io/sdk-vue/lib/node/index-xwOams1O.js:314:15)
at runInNode (file:///var/task/node_modules/@builder.io/sdk-vue/lib/node/index-xwOams1O.js:346:13) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/var/task/node_modules/@builder.io/sdk-vue/lib/node/index-xwOams1O.js'
]
}
[Builder.io]: Failed code evaluation: [Builder.io]: could not import `isolated-vm` module for safe script execution on Node server.
In certain Node environments, the SDK requires additional initialization steps. This can be achieved by
importing and calling `initializeNodeRuntime()` from "@builder.io/sdk-react/node/init". This must be done in
a server-only execution path within your application.
Please see the documentation for more information: https://builder.io/c/docs/integration-tips#enabling-data-bindings-in-node-environments
{
code: 'var __awaiter=function(t,e,n,r){return new(n||(n=Promise))((function(a,o){function i(t){try{u(r.next(t))}catch(t){o(t)}}function l(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?a(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,l)}u((r=r.apply(t,e||[])).next())}))},__generator=function(t,e){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function l(o){return function(l){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,r=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=e.call(t,i)}catch(t){o=[6,t],r=0}finally{n=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,l])}}};function main(){var t,e,n,r,a;return __awaiter(this,void 0,void 0,(function(){var o,i;return __generator(this,(function(l){return Builder.isServer,Builder.isBrowser&&((o=null===(a=null===(r=null===(n=null===(e=null===(t=state.margit.data)||void 0===t?void 0:t.attributes)||void 0===e?void 0:e.avatar)||void 0===n?void 0:n.data)||void 0===r?void 0:r.attributes)||void 0===a?void 0:a.url)?(i="https://example.com".concat(o),console.log(i)):console.error("Avatar URL is not available")),[2]}))}))}var _virtual_index=main();return _virtual_index'
}
And builder support is not very helpful in this regardβ¦ π
from builder.
If it helps anyone: A workaround for me was to wrap the BuilderContent
in <client-only></client-only>
.
from builder.
If it helps anyone: A workaround for me was to wrap the
BuilderContent
in<client-only></client-only>
.
This sadly isn't an option for us because we would lose all the SSR advantages.
from builder.
If it helps anyone: A workaround for me was to wrap the
BuilderContent
in<client-only></client-only>
.This sadly isn't an option for us because we would lose all the SSR advantages.
Understandable. For me it was enough to only wrap that one component into client-only
that was causing the issue.
from builder.
Related Issues (20)
- makeStateKey deprecation causes builder.io not to build in an Angular 18 project HOT 10
- Allow astro components to be registered by Builder.io HOT 1
- Node 22 compatibility HOT 1
- Request to switch Solid SDK dependency solid-styled-components with solid-styled
- Getting "gyp ERR! UNCAUGHT EXCEPTION" when installing "@builder.io/react": "3.0.8" HOT 1
- Hydration error on Remix
- Feature request: disable client-side tracking via Pixel HOT 2
- Angular SDK Gen 2 release estimate? Current branch of dev? HOT 2
- Problem with save template and use template HOT 4
- SDK NextJs revalidation issue HOT 2
- Semi Colon being deployed with content - React SDK HOT 3
- Documentation: React Gen2 SDK HOT 1
- Query in fetchEntries() won't work in SvelteKit
- builderContext is missing for Qwik HOT 1
- Svelte 5 Support HOT 1
- NextJS SDK lru-cache error HOT 5
- Help Needed: Sorting Nested JSON Layer Tree with SortableJS in Alpine.js and Layer Management Techniques from BuilderIO HOT 1
- TEST
- TEST BOT HOT 1
- Impossible to implement ISR on Next.js App Router HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from builder.