plasmo dev is failing

here is the verbose output
(...)
🟑 4 | @plasmohq/optimizer-es: tabs/import-wallet-with-socials.a896c681.js tabs/import-wallet-with-socials.[hash].js /Users/dp/work/extension
🟑 5 | optimizer-es: skipped
(...)
🟑 9 | optimizer-es: skipped
/Users/dp/work/extension/node_modules/@plasmohq/parcel-compressor-utf8/dist/index.js:1
var a=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var l=(o,r)=>{for(var e in r)a(o,e,{get:r[e],enumerable:!0})},c=(o,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of p(r))!u.call(o,t)&&t!==e&&a(o,t,{get:()=>r[t],enumerable:!(n=d(r,t))||n.enumerable});return o};var C=o=>c(a({},"__esModule",{value:!0}),o);var g={};l(g,{default:()=>h});module.exports=C(g);var i=require("@parcel/plugin");var m=require("stream"),f=require("string_decoder"),s=class extends m.Transform{decoder=new f.StringDecoder("utf8");_transform(r,e,n){n(null,this.transformChunk(this.decoder.write(r)))}_flush(r){let e=this.decoder.end();e?r(null,this.transformChunk(e)):r()}transformChunk(r){return Array.from(r).map(e=>e.charCodeAt(0)<=127?e:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)).join("")}};var h=new i.Compressor({async compress({stream:o}){return{stream:o.pipe(new s)}}});


RangeError: Invalid array length
at Function.from (<anonymous>)
at s.transformChunk (/Users/dp/work/extension/node_modules/@plasmohq/parcel-compressor-utf8/dist/index.js:1:783)
at s._transform (/Users/dp/work/extension/node_modules/@plasmohq/parcel-compressor-utf8/dist/index.js:1:641)
at Transform._write (node:internal/streams/transform:171:8)
at writeOrBuffer (node:internal/streams/writable:564:12)
at _write (node:internal/streams/writable:493:10)(...)
at Readable.emit (node:events:518:28)
at Readable.read (node:internal/streams/readable:780:10)
(...)
🟑 4 | @plasmohq/optimizer-es: tabs/import-wallet-with-socials.a896c681.js tabs/import-wallet-with-socials.[hash].js /Users/dp/work/extension
🟑 5 | optimizer-es: skipped
(...)
🟑 9 | optimizer-es: skipped
/Users/dp/work/extension/node_modules/@plasmohq/parcel-compressor-utf8/dist/index.js:1
var a=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var l=(o,r)=>{for(var e in r)a(o,e,{get:r[e],enumerable:!0})},c=(o,r,e,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let t of p(r))!u.call(o,t)&&t!==e&&a(o,t,{get:()=>r[t],enumerable:!(n=d(r,t))||n.enumerable});return o};var C=o=>c(a({},"__esModule",{value:!0}),o);var g={};l(g,{default:()=>h});module.exports=C(g);var i=require("@parcel/plugin");var m=require("stream"),f=require("string_decoder"),s=class extends m.Transform{decoder=new f.StringDecoder("utf8");_transform(r,e,n){n(null,this.transformChunk(this.decoder.write(r)))}_flush(r){let e=this.decoder.end();e?r(null,this.transformChunk(e)):r()}transformChunk(r){return Array.from(r).map(e=>e.charCodeAt(0)<=127?e:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)).join("")}};var h=new i.Compressor({async compress({stream:o}){return{stream:o.pipe(new s)}}});


RangeError: Invalid array length
at Function.from (<anonymous>)
at s.transformChunk (/Users/dp/work/extension/node_modules/@plasmohq/parcel-compressor-utf8/dist/index.js:1:783)
at s._transform (/Users/dp/work/extension/node_modules/@plasmohq/parcel-compressor-utf8/dist/index.js:1:641)
at Transform._write (node:internal/streams/transform:171:8)
at writeOrBuffer (node:internal/streams/writable:564:12)
at _write (node:internal/streams/writable:493:10)(...)
at Readable.emit (node:events:518:28)
at Readable.read (node:internal/streams/readable:780:10)
D
dpβ€’31d ago
@lab any hints? Thank you
Y
YAGPDB.xyzβ€’31d ago
Gave +1 Rep to @lab (current: #1 - 169)
L
labβ€’31d ago
@dp this happens with the optimizer, it basically traverse through the bundle to minify code You might need to break your tab into smaller component and maybe lazy load some stuff I'd do a bundle analyzer on those
Want results from more Discord servers?
Add your server
More Posts
Content script not loading when navigating to URL (and other issues)Hi, A little about me first, I'm an experienced C# dev fairly new to TS, extensions and web dev gecommand bar modal w. CSUIanyone successfully implemented a command bar on website that can be called by cmd-k using plasmo csCan't access other elements outside the plasmo-csui shadow rootI'm trying to get the unique url of a tweet container when i click on the button I'm rendering. I haFlutter supportIt would be interesting to see Plasmo supporting Flutter nativelyHow do I forward an API request from inside a React component to the BGSW?Hey all! I'm making an extension that currently has a single content script which loads up a small dAh, hello there! When it comes toAh, hello there! When it comes to obtaining microphone permissions within a side panel in your PlasmReferenceError: _messaging is not defined while using sendToBackground()I am getting this weird error while trying to use the plasmo messaging package from my content scripHow to do unit testing?I attempted to download and test the `sample` jest, but it did not work due to the following error. with-supbase github provider link failsso I managed to get the with-supabase example up and running except clicking the github provider takInserting element on click within a Content ScriptHi all, I'm having a React Component that add a click event listener on the body. When I click on a I have a problem with shadow root - Hide & visibilityhi all ... I have a problem that, I want when I click the Extension icon the shadow root will activaHow do I get Vue devtools to work?I have not been successful in getting Vue devtools to work with Plasmo. I followed the instructions Bug : EAGAIN when use `plasmo package`EAGAIN when using `plasmo package` ``` % yarn package --verbose yarn run v1.22.22 warning package.jHow to customize parcel config?Hi everyone, I am trying to use a react-native based library called `react-native-reanimated`. This