Giter VIP home page Giter VIP logo

Comments (4)

postspectacular avatar postspectacular commented on July 23, 2024

Hi @allforabit - I'm not quite sure what's going on but I just learned that yarn auto-executes a "prepare" script alias (which is present in this example) at the end of yarn install. I renamed the command to "prep" only and it seems to do the trick. That command & the commits.json file is only used for me to upload the demo to S3...

I've updated the server to write that file (commits.json) now each time commits are missing from the cache.

I still don't understand though why you'd get a 404. Are you seeing the following when you install & start the app?

rm -rf yarn.lock node_modules/ commits.json

yarn install
yarn install v1.9.4
info No lockfile found.
[1/4] 🔍  Resolving packages...
warning parcel-bundler > htmlnano > cssnano > autoprefixer > [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning parcel-bundler > htmlnano > cssnano > postcss-merge-rules > [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning parcel-bundler > htmlnano > cssnano > postcss-merge-rules > caniuse-api > [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning parcel-bundler > serialize-to-js > js-beautify > editorconfig > @types/[email protected]: This is a stub types definition for commander (https://github.com/tj/commander.js). commander provides its own type definitions, so you don't need @types/commander installed!
[2/4] 🚚  Fetching packages...
[-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 0/694(node:91031) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
success Saved lockfile.
✨  Done in 18.88s.

yarn start
yarn run v1.9.4
$ tsc && node build/server/index.js
⠋ Building...starting server @ http://localhost:8080
✨  Built in 2.44s.

Did you try navigating to just http://localhost:8080 (without the extra /out/ path)? It should redirect you there automatically...

from umbrella.

allforabit avatar allforabit commented on July 23, 2024

I get something fairly similar when running the commands:

>yarn
yarn install v1.7.0
info No lockfile found.
[1/4] Resolving packages...
warning parcel-bundler > htmlnano > cssnano > autoprefixer > [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning parcel-bundler > htmlnano > cssnano > postcss-merge-rules > [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning parcel-bundler > htmlnano > cssnano > postcss-merge-rules > caniuse-api > [email protected]: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
warning parcel-bundler > serialize-to-js > js-beautify > editorconfig > @types/[email protected]: This is a stub types definition for commander (https://github.com/tj/commander.js). commander provides its own type definitions, so you don't need @types/commander installed!
[2/4] Fetching packages...
info [email protected]: The platform "win32" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
Done in 68.31s.

>yarn start
yarn run v1.7.0
$ tsc && node build/server/index.js
- Building...starting server @ http://localhost:8080
√  Built in 122ms.

I'm still getting the 404 though.

I see server/index.js references an index.html. I don't see this file present in the repo though. Maybe this has been excluded?

const bundler = new Bundler("index.html", {
    outDir: "./out",
    outFile: "index.html",
    publicUrl: "/out",
});

from umbrella.

postspectacular avatar postspectacular commented on July 23, 2024

Pull & try again please! :) Sorry about that!

from umbrella.

allforabit avatar allforabit commented on July 23, 2024

Works perfectly now thanks!

from umbrella.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.