Skip to content

Commit

Permalink
breaking changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ikeman32 committed Feb 3, 2022
1 parent 0869637 commit 3491f32
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 24 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,17 @@ react-router-dom 6.1.1.

## How To Install

## Breaking changes
There are some issues with some of the node pmodules requiring vulnerable versions of certain modules and you may encounter a similar error as this:

Compiled with problems:

ERROR in ./node_modules/history/index.js

and a stack trace through multiple files ending up with webpack compiling with an error.
Right now the workaround is to run npm audit fix --force to install the breaking changes and vulnerable modules.


requires create-react-app v5.0.0
to force your system to use create-react-app v5 append '@5.0.0' to the create-react-app

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cra-template-duke",
"version": "1.2.2",
"version": "1.2.3",
"description": "Create React App Template",
"main": "template.json",
"scripts": {
Expand Down
1 change: 0 additions & 1 deletion template.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"react-is": "^17.0.2",
"react-router-dom": "^6.1.1",
"react-scripts": "^5.0.0",
"sass": "^1.45.0",
"styled-components": "^5.3.3"
}
}
Expand Down
1 change: 0 additions & 1 deletion template/src/App.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as React from 'react';
import MyRoutes from './components/routes/Routes';//Import routes
import { Header, StickyFooter, sections, title } from "./components/index";
import './App.scss';

function App() {
return (
Expand Down
Empty file removed template/src/App.scss
Empty file.
6 changes: 5 additions & 1 deletion template/src/components/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
//Import your custom components here
import Header from './header/Header';
import StickyFooter from './footer/StickeyFooter';
import { sections, title } from './header/HeaderProps';

//Then export them here
export {
Header,
StickyFooter
StickyFooter,
sections,
title

};

/*
Expand Down
1 change: 0 additions & 1 deletion template/src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import * as React from "react";
import ReactDOM from "react-dom";
import { BrowserRouter as Router } from "react-router-dom";
import "./index.scss";
import App from "./App";

ReactDOM.render(
Expand Down
18 changes: 0 additions & 18 deletions template/src/index.scss

This file was deleted.

2 changes: 1 addition & 1 deletion template/src/routes/Routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const MyRoutes = () => {
<>
<Routes>
<Route exact path="/" element={<Home />} />
<Route path="/About" component={<About />} />
<Route path="/About" element={<About />} />
</Routes>
{/* <Route path='/<pathname here>' element={<component-name />}/> */}
</>
Expand Down

0 comments on commit 3491f32

Please sign in to comment.