Giter Site home page Giter Site logo

sawtaytoes / ghadyani-framework-old Goto Github PK

View Code? Open in Web Editor NEW
5.0 3.0 4.0 1.55 MB

A starter project for dev and production builds of Webpack, React, and Redux.

License: MIT License

Shell 0.66% JavaScript 91.97% CSS 7.37%
redux webpack react ghadyani-framework redux-observable tape unit-testing karma karma-webpack stylus

ghadyani-framework-old's People

Contributors

dependabot[bot] avatar rohan-paul avatar sampsoncrowley avatar sawtaytoes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ghadyani-framework-old's Issues

Backend.js contains Client Side Code

I am using axios for isomorphic http requests.

in backend.js I am getting the error 'XMLHttpRequest is not defined'

this only happens in axios when target is not set to node in webpack.

webpack.config.server.prod has target: 'node' correctly set.

The error in node goes away if I add target: 'node' to webpack.config.client.prod which means that code is also being ran on the server side which it should not be.

obviously i can't actually keep target: 'node' in the client config, since it makes the browser break.

Why whould client.prod be compiled into backend.js? how do I fix this?

Client Side Config

what's the right way to collect a client side config into react with this setup? e.g. if I needed to know the server port in the client side.

server/configs seems to only have webpack configs and server side configs

production build not using babelrc

ERROR in ./src/components/header/header.jsx
Module build failed: SyntaxError: Decorators are not officially supported yet in 6.x pending a proposal update.
However, if you need to use them you can install the legacy decorators transform with:
 
npm install babel-plugin-transform-decorators-legacy --save-dev
 
and add the following line to your .babelrc file:
 
{
  "plugins": ["transform-decorators-legacy"]
}
 
The repo url is: https://github.com/loganfsmyth/babel-plugin-transform-decorators-legacy.

but my babelrc has:

{
  "plugins": [
    "transform-runtime",
    "transform-class-properties",
    "react-hot-loader/babel",
    "transform-decorators-legacy"
  ],
  "presets": [
    "latest",
    "stage-0",
    "react",
  ],
}

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.