https://www.plasmo.com/ logo
#support-framework
Title
# support-framework
l

limited-farmer-52140

06/09/2022, 5:48 AM
newtab not building
@quiet-electrician-41149 Let's move convo here
q

quiet-electrician-41149

06/09/2022, 5:49 AM
Sorry sorry
completely forgot that we were in #946290204904390690
l

limited-farmer-52140

06/09/2022, 5:49 AM
oh don't worry! I wanted to move here so we can dedicate to it
can you show me the directory structure you're using
q

quiet-electrician-41149

06/09/2022, 5:50 AM
So yeah, in
src/newtab.tsx
I got:
Copy code
import './styles/index.css';
import { IndexNewTab } from "./newTabPage/index";

export default IndexNewTab
l

limited-farmer-52140

06/09/2022, 5:50 AM
the only indicator I'm seeing is
src/newtab
so Imma test that out real quick
q

quiet-electrician-41149

06/09/2022, 5:50 AM
one sec
Copy code
➜  caddie-dash git:(master) ✗ tree -d -I node_modules
.
├── assets
├── build
│   ├── chrome-mv3-dev
│   └── chrome-mv3-prod
└── src
    ├── config
    ├── newTabPage
    │   ├── components
    │   │   ├── Dashboard
    │   │   │   └── Beautiful
    │   │   │       └── Dashboard
    │   │   └── Navigation
    │   ├── pages
    │   │   └── dashboards
    │   ├── store
    │   │   ├── migrate
    │   │   └── slices
    │   ├── supabase
    │   └── utils
    └── styles

20 directories
Lemme know if you want files as well
does plasmo support
src/newtab/index.tsx
?
l

limited-farmer-52140

06/09/2022, 5:54 AM
it should - but I haven't tested that yet xD Will do it now
q

quiet-electrician-41149

06/09/2022, 5:54 AM
oh one thing I did was add
"strict": true,
to the tsconfig, but not sure that would mess with things
l

limited-farmer-52140

06/09/2022, 5:54 AM
it shouldn't
q

quiet-electrician-41149

06/09/2022, 5:54 AM
needed to do that for
zod
yeah other than that I havent messed with anything, dev works just fine
The new tab page load was pretty slow so I wanted to build it and make sure that its only cuz its development mode
Funny thing, when I open
.plasmo/static/newtab/index.tsx
in vscode and command click
~newtab
, it goes to the right file
l

limited-farmer-52140

06/09/2022, 6:43 AM
oopsie found the bug!
apparently, our build command was using the plain config and not our custom bundler config lol (and this bug has been around for a while)
just released the patch in 0.39.2, when you got a moment please try it out :)
q

quiet-electrician-41149

06/09/2022, 6:50 AM
Worked!
Thank you very much 🙂
l

limited-farmer-52140

06/09/2022, 7:05 AM
👍
BTW did the speed increased at all or is it still very slow? XD
q

quiet-electrician-41149

06/09/2022, 7:35 AM
Oh yeah, wayyyy faster
q

quiet-engine-70935

06/09/2022, 7:35 AM
@quiet-electrician-41149 has reached level 4. GG!
q

quiet-electrician-41149

06/09/2022, 7:35 AM
like 5x
l

limited-farmer-52140

06/09/2022, 7:36 AM
nice!
5 Views