Getting Help with Emotion (Starter Code Not Running)

Problem

After running npm install then npm start, it failed to compile.

Solution

  • Replace the start and build scripts in your package.json:

"start": "react-scripts --openssl-legacy-provider start",

"build": "react-scripts --openssl-legacy-provider build",

  • Import React into your App.js file

import React from 'react';

  • Save both files and refresh
6 Likes

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.