-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stuck trying to build and test #496
Comments
Yeah, when I created the extension 6 years ago
Looks like I should've checked for that back when I wrote that a couple of years back. The reason it pulls in a bunch of different preact versions is that devtools has to work with all of them. You cannot assume that all users are on latest preact. The local repo link was used to test against upcoming preact versions that hadn't been released yet to ensure that new/upcoming releases work out of the box with devtools. |
@marvinhagemeister Thanks for the explanations. I may be able to help with some of this effort – at the very least, documenting it – once I get |
slaps forehead OK, got them running by just following the GitHub workflow file. I'll do a PR for the README later. |
(Just ran into this myslef) Preact doesn't output |
When trying to get a basic build and test environment running for the extension, I ran into a bunch of problems that I don't know the answer to. Some of are due to missing instructions in the README, but others may show a different kind of brokenness. Either way, I've hit a wall. I'm happy to do a PR to fix up the README once I have answers.
Missing
yarn install
Apparently this is a yarn repo? (Clue: #491) Everything in the Contributing section says
npm
, butnpm install
fails due to Typescript version conflicts. Butyarn install
works.Need to do
npm run test:e2e
beforenpm run dev
... so that
test-e2e/fixtures/vendor/preact
can be populated with 33MB of Preact versions. Looks like most of these can be deleted and it'll still work OK, there just has to be at least one. Would be good to have a getting-started command that just downloads the latest.However...
npm run test:e2e
failsI've been trying to knock down errors one by one:
Need to
npx playwright install
Fortunately this advice is clearly output by the first run.
Needs
preact
repo as sibling dirThe test scripts want a
preact
repo in the same dir aspreact-devtools
for some reason, even though they already have loads of Preact tgz distributions in thefixtures/
dir. Also, need to run builds within thepreact
repo to populatepreact/dist/
Missing
mjs.map
filesThis is where I'm stuck – the test script is missing these files:
../preact/devtools/dist/devtools.mjs.map
../preact/dist/preact.mjs.map
../preact/hooks/dist/hooks.mjs.map
... and I don't know how to generate them. All the other
dist/
artefacts have.map
files, it's just the.mjs
ones that are missing. I'm guessing this is amicrobuild
thing?The text was updated successfully, but these errors were encountered: