Giter Site home page Giter Site logo

etc-reference-letter's People

Contributors

jimjbrettj avatar stevenshi99 avatar vezenovm avatar zcstarr avatar

Watchers

 avatar

etc-reference-letter's Issues

Heroku Deploy Issues

Below are the heroku logs I get from when I try to deploy the Typescript app to Heroku. The client React app located at the root, compiles and runs locally at localhost:3000.

The Node.js app is in /api folder and the package.json seems to be configured correctly as once again, when running locally it correctly grabs the build folder resulting from running npm run build on the React app.

I was thinking that maybe an easier deployment strategy would simply be separate repositories. There seems to be some kind of dependency mismatch with when heroku is trying to build.

2020-04-20T22:55:57.940591+00:00 app[web.1]: > [email protected] start /app
2020-04-20T22:55:57.940592+00:00 app[web.1]: > react-scripts start
2020-04-20T22:55:57.940592+00:00 app[web.1]:
2020-04-20T22:56:00.783624+00:00 heroku[web.1]: State changed from starting to up
2020-04-20T22:56:00.616896+00:00 app[web.1]: ℹ 「wds」: Project is running at http://172.16.178.166/
2020-04-20T22:56:00.617383+00:00 app[web.1]: ℹ 「wds」: webpack output is served from
2020-04-20T22:56:00.617464+00:00 app[web.1]: ℹ 「wds」: Content not from webpack is served from /app/public
2020-04-20T22:56:00.617563+00:00 app[web.1]: ℹ 「wds」: 404s will fallback to /
2020-04-20T22:56:00.617780+00:00 app[web.1]: Starting the development server...
2020-04-20T22:56:00.617781+00:00 app[web.1]:
2020-04-20T22:56:29.930428+00:00 app[web.1]: Failed to compile.
2020-04-20T22:56:29.930437+00:00 app[web.1]:
2020-04-20T22:56:29.930912+00:00 app[web.1]: /app/src/App.tsx
2020-04-20T22:56:29.930914+00:00 app[web.1]: TypeScript error in /app/src/App.tsx(5,19):
2020-04-20T22:56:29.930915+00:00 app[web.1]: Could not find a declaration file for module 'react'. '/app/node_modules/react/index.js' implicitly has an 'any' type.
2020-04-20T22:56:29.930917+00:00 app[web.1]: Try `npm install @types/react` if it exists or add a new declaration (.d.ts) file containing `declare module 'react';`  TS7016
2020-04-20T22:56:29.930917+00:00 app[web.1]:
2020-04-20T22:56:29.930918+00:00 app[web.1]: 3 | import { TutorialToken } from "./contract-types/TutorialToken"; // import is correct
2020-04-20T22:56:29.930918+00:00 app[web.1]: 4 | import { readFileSync } from "fs";
2020-04-20T22:56:29.930919+00:00 app[web.1]: > 5 | import React from 'react';
2020-04-20T22:56:29.930919+00:00 app[web.1]: |                   ^
2020-04-20T22:56:29.930919+00:00 app[web.1]: 6 | import * as ReactDOM from 'react-dom';
2020-04-20T22:56:29.930920+00:00 app[web.1]: 7 | import TutorialTokenAbi from './contract-data/TutorialToken.json';
2020-04-20T22:56:29.930921+00:00 app[web.1]: 8 | import Writer from './components/writer/Writer';
2020-04-20T23:28:59.988715+00:00 heroku[web.1]: Idling
2020-04-20T23:28:59.993200+00:00 heroku[web.1]: State changed from up to down

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.