Skip to content

Commit

Permalink
[#1] fix: 'React' refers to a UMD global, but the current file is a m…
Browse files Browse the repository at this point in the history
…odule error fixed by importing React & tsconfig.json.compilerOptions.jsx = react-jsx -> react
  • Loading branch information
hanbin9775 committed Jul 11, 2021
1 parent bbcc132 commit 87b6736
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Root.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { StrictMode } from 'react';
import { Router } from 'react-router-dom';
import { RecoilRoot } from 'recoil';
import App from 'components/App';
import { historySingleton } from 'singleton/history';
import React from "react";
import { StrictMode } from "react";
import { Router } from "react-router-dom";
import { RecoilRoot } from "recoil";
import App from "components/App";
import { historySingleton } from "singleton/history";

const Root = () => {
return (
Expand Down
1 change: 1 addition & 0 deletions src/components/App.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from "react";
import GreetingPage from "pages/GreetingPage";
import { Route, Switch } from "react-router-dom";
import GlobalStyle from "styles/GlobalStyle";
Expand Down

0 comments on commit 87b6736

Please sign in to comment.