Clayton
09/21/2021, 2:02 AM/frontend
(including package.json)
• and update StaticSite construct to use a single, simple HTML file
• and then do a fresh install with Yarn (no yarn.lock, .yarn dir, .yarnrc.yml file present)
• I see a ton of React / Next modules are still installed
There are no other references to React (e.g. none in root level package.json).
Where might Yarn be getting the instructions to install all of the React / Next pieces?
Is the StaticSite construct automatically requiring some of these irrespective of its configuration?
The StaticSite construct (inside /lib/WebsiteStack.js
in this repo) was updated to -
const site = new sst.StaticSite(this, "Site", {
path: "frontend",
replaceValues: [
{
files: "**/*.html",
search: "%%SERVICE_1_ENDPOINT%%",
replace: props.api1.url,
},
{
files: "**/*.html",
search: "%%SERVICE_2_ENDPOINT%%",
replace: props.api2.url,
}
],
});
Frank
yarn.lock
at the repo root before running yarn install?Clayton
09/21/2021, 12:52 PM/frontend
and had Seed still tripping up on some called React resources.
I then cleared out modules and all yarn resources (including lock), trying to get back to an initial install state w/o React elements present (having deleted all other file in /frontend
).
This builds and deploys ok now on Seed, but I still see a lot of React / Next resources being installed as modules locally after the yarn install.Frank
I still see a lot of React / Next resources being installed as modules locally after the yarn installBy locally do you mean on ur local or on Seed?
Frank
Clayton
09/23/2021, 9:46 PM