Coder Social home page Coder Social logo

bootstrap-a-la-carte's People

Contributors

checkmate-bitch avatar tamj0rd2 avatar

Watchers

 avatar

bootstrap-a-la-carte's Issues

There are multiple modules with names that only differ in casing (component-switch branch)

Reproducing the issue:
Run npm run start-dev

Expected output:
webpack: Compiled successfully.

Actual output:

WARNING in ./~/React/lib/KeyEscapeUtils.js
There are multiple modules with names that only differ in casing.
This can lead to unexpected behavior when compiling on a filesystem with other case-semantic.
Use equal casing. Compare these module identifiers:
* D:\Users\username\Coding\bootstrap-a-la-carte\node_modules\React\lib\KeyEscapeUtils.js
    Used by 1 module(s), i. e.
    D:\Users\username\Coding\bootstrap-a-la-carte\node_modules\React\lib\traverseAllChildren.js
* D:\Users\username\Coding\bootstrap-a-la-carte\node_modules\react\lib\KeyEscapeUtils.js
    Used by 1 module(s), i. e.
    D:\Users\username\Coding\bootstrap-a-la-carte\node_modules\react\lib\traverseAllChildren.js

... multiple warnings that look like the one above

webpack: Compiled with warnings.

Cause:
The require statements in each of the element-pres are wrong. They need to use a lowercase r. So they should be var React = require('react') rather than var React = require('React')

Selecting different elements from the SiteNav stops pretty print from working

Steps to reproduce:

  1. Let the page load
  2. Click on a different link from the SiteNav
  3. Click on the Navigation Bar again, from the SiteNav

Expected behaviour:

  1. Let the page load - pre should be prettyprinted
  2. Click on a different link from the SiteNav - pre should be prettyprinted
  3. Click on the Navigation Bar again, from the SiteNav - pre should be prettyprinted

Actual behaviour:

  1. Let the page load - the pre is prettyprinted
  2. Click on a different link from the SiteNav - the pre is not prettyprinted
  3. Click on the Navigation Bar again, from the SiteNav - the pre is not prettyprinted

Cause:
The script for pretty print is inside of index.html so it only runs on initial page load and never again.

Suggested fix:
Save the actual script in app/scripts and invoke it every time App renders

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.