Coder Social home page Coder Social logo

tuanpham-dev / react-invoice-generator Goto Github PK

View Code? Open in Web Editor NEW
478.0 10.0 218.0 3.6 MB

React Invoice Generator allows you quickly make invoices and export them as PDF

Home Page: https://tuanpham-dev.github.io/react-invoice-generator/

License: MIT License

HTML 1.47% TypeScript 87.62% SCSS 10.91%
typescript react invoice react-pdf pdf invoice-generator invoice-pdf

react-invoice-generator's Introduction

Hi there 👋

react-invoice-generator's People

Contributors

dependabot[bot] avatar lil5 avatar tuanpham-dev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-invoice-generator's Issues

License absence

As it stands now, this repository has no license. Could you please add a license. Thank you.

yarn start command does not work

Hi,

The instructions in the readme file are wrong. yarn start is not a script that can be used, rather one should use yarn dev

Yarn Install failing

Full logs:

Note: This was done with a vercel deploy with CRA defaults, however the same happens when cloning locally.
I used a fork which was my own however it is exactly the same as yours

Cloning completed: 493.947ms
19:16:25.657 | Looking up build cache...
19:16:25.889 | Build Cache not found
19:16:25.916 | Running "vercel build"
19:16:26.401 | Vercel CLI 28.2.2
19:16:26.629 | Installing dependencies...
19:16:26.975 | yarn install v1.22.17
19:16:27.057 | [1/4] Resolving packages...
19:16:27.589 | [2/4] Fetching packages...
19:16:44.151 | [3/4] Linking dependencies...
19:16:44.154 | warning " > @testing-library/[email protected]" has unmet peer dependency "@testing-library/dom@>=5".
19:17:04.170 | [4/4] Building fresh packages...
19:18:28.909 | error /vercel/path0/node_modules/node-sass: Command failed.
19:18:28.910 | Exit code: 1
19:18:28.910 | Command: node scripts/build.js
19:18:28.910 | Arguments:
19:18:28.910 | Directory: /vercel/path0/node_modules/node-sass
19:18:28.910 | Output:
19:18:28.912 | Building: /node16/bin/node /vercel/path0/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
19:18:28.912 | gyp info it worked if it ends with ok
19:18:28.912 | gyp verb cli [
19:18:28.912 | gyp verb cli   '/node16/bin/node',
19:18:28.913 | gyp verb cli   '/vercel/path0/node_modules/node-gyp/bin/node-gyp.js',
19:18:28.913 | gyp verb cli   'rebuild',
19:18:28.913 | gyp verb cli   '--verbose',
19:18:28.913 | gyp verb cli   '--libsass_ext=',
19:18:28.913 | gyp verb cli   '--libsass_cflags=',
19:18:28.913 | gyp verb cli   '--libsass_ldflags=',
19:18:28.913 | gyp verb cli   '--libsass_library='
19:18:28.913 | gyp verb cli ]
...
( Large CMake logs cut out here )
...
19:18:28.965 | from /vercel/.node-gyp/16.15.0/include/node/node.h:63,
19:18:28.965 | from ../../nan/nan.h:56,
19:18:28.965 | from ../src/binding.cpp:1:
19:18:28.965 | /vercel/.node-gyp/16.15.0/include/node/v8-internal.h: In function ‘void v8::internal::PerformCastCheck(T*)’:
19:18:28.965 | /vercel/.node-gyp/16.15.0/include/node/v8-internal.h:492:38: error: ‘remove_cv_t’ is not a member of ‘std’
19:18:28.965 | !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
19:18:28.965 | ^~~~~~~~~~~
19:18:28.965 | /vercel/.node-gyp/16.15.0/include/node/v8-internal.h:492:38: note: suggested alternative: ‘remove_cv’
19:18:28.965 | !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
19:18:28.965 | ^~~~~~~~~~~
19:18:28.965 | remove_cv
19:18:28.965 | /vercel/.node-gyp/16.15.0/include/node/v8-internal.h:492:38: error: ‘remove_cv_t’ is not a member of ‘std’
19:18:28.965 | /vercel/.node-gyp/16.15.0/include/node/v8-internal.h:492:38: note: suggested alternative: ‘remove_cv’
19:18:28.965 | !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
19:18:28.965 | ^~~~~~~~~~~
19:18:28.966 | remove_cv
19:18:28.966 | /vercel/.node-gyp/16.15.0/include/node/v8-internal.h:492:50: error: template argument 2 is invalid
19:18:28.966 | !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
19:18:28.966 | ^
19:18:28.966 | /vercel/.node-gyp/16.15.0/include/node/v8-internal.h:492:63: error: ‘::Perform’ has not been declared
19:18:28.966 | !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
19:18:28.966 | ^~~~~~~
19:18:28.966 | /vercel/.node-gyp/16.15.0/include/node/v8-internal.h:492:63: note: suggested alternative: ‘herror’
19:18:28.966 | !std::is_same<Data, std::remove_cv_t<T>>::value>::Perform(data);
19:18:28.966 | ^~~~~~~
19:18:28.966 | herror
19:18:28.966 | make: *** [Release/obj.target/binding/src/binding.o] Error 1
19:18:28.966 | make: Leaving directory `/vercel/path0/node_modules/node-sass/build'
19:18:28.966 | gyp ERR! build error
19:18:28.966 | gyp ERR! stack Error: `make` failed with exit code: 2
19:18:28.966 | gyp ERR! stack     at ChildProcess.onExit (/vercel/path0/node_modules/node-gyp/lib/build.js:262:23)
19:18:28.966 | gyp ERR! stack     at ChildProcess.emit (node:events:527:28)
19:18:28.966 | gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
19:18:28.966 | gyp ERR! System Linux 4.14.287-215.504.amzn2.x86_64
19:18:28.966 | gyp ERR! command "/node16/bin/node" "/vercel/path0/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
19:18:28.966 | gyp ERR! cwd /vercel/path0/node_modules/node-sass
19:18:28.967 | gyp ERR! node -v v16.15.0
19:18:28.967 | gyp ERR! node-gyp -v v3.8.0
19:18:28.967 | gyp ERR! not ok
19:18:28.967 | Build failed with error code: 1
19:18:28.967 | Error: Command "yarn install" exited with 1
19:18:28.981 | info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Error in building

I am getting ERROR:
TypeScript error in /home/akhzarfarhan/gh/react-invoice-generator/src/styles/compose.ts(4,45):
Namespace 'ReactPDF' has no exported member 'Style'. TS2694

describing as:
4 | const compose = (classes: string): ReactPDF.Style => {

Ran yarn build but not opening on my browser

Hi,

First off, thank you for creating this.. I ran yarn build

yarn run v1.22.22
$ tsc && vite build
vite v5.2.7 building for production...
✓ 427 modules transformed.
dist/assets/manifest-BwaSAB0A.json 0.50 kB │ gzip: 0.25 kB
dist/index.html 1.01 kB │ gzip: 0.53 kB
dist/assets/favicon-BiRKdstg.ico 4.29 kB
dist/assets/logo192-DLMsI3rD.png 9.03 kB
dist/assets/index-CP15VwhS.css 37.29 kB │ gzip: 6.82 kB
dist/assets/index-CRWf_PYf.js 1,782.42 kB │ gzip: 558.81 kB

(!) Some chunks are larger than 500 kB after minification. Consider:

but instead of "build" directory it created a "dist" directory.. I copied all the files to a subdirectory in my my domain root folder called "invoice" to test but it's not opening. My server is running nginx

Anything I missed out? Thanks

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.