newtab not building
# support-framework
l
newtab not building
@quiet-electrician-41149 Let's move convo here
q
Sorry sorry
completely forgot that we were in #946290204904390690
l
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
So yeah, in
src/newtab.tsx
I got:
Copy code
import './styles/index.css';
import { IndexNewTab } from "./newTabPage/index";

export default IndexNewTab
l
the only indicator I'm seeing is
src/newtab
so Imma test that out real quick
q
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
it should - but I haven't tested that yet xD Will do it now
q
oh one thing I did was add
"strict": true,
to the tsconfig, but not sure that would mess with things
l
it shouldn't
q
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
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
Worked!
Thank you very much πŸ™‚
l
πŸ‘
BTW did the speed increased at all or is it still very slow? XD
q
Oh yeah, wayyyy faster
q
@quiet-electrician-41149 has reached level 4. GG!
q
like 5x
l
nice!
5 Views