FormidableLabs / spectacle

A React-based library for creating sleek presentations using JSX syntax that gives you the ability to live demo your code.
https://commerce.nearform.com/open-source/spectacle/
MIT License
9.7k stars 690 forks source link

Project created using `create-spectacle` is missing `raw-loader` dependency. #1309

Open AGrzes opened 6 months ago

AGrzes commented 6 months ago

Prerequisites

Describe Your Environment

What version of Spectacle are you using? 10.1.7

What version of React are you using? 18.2.0

What browser are you using? Not Applicable

What platform are you on? linux

Describe the Problem

Project created using create-spectacle is missing raw-loader dependency.

Expected behavior: After creating project and installing declared dependencies the project is able ti start

Actual behavior: There is an error during start

[webpack-cli] Error: Cannot find module 'raw-loader'

Additional Information

Raw loader package is referenced here https://github.com/FormidableLabs/spectacle/blob/main/packages/create-spectacle/src/templates/webpack.ts#L25 But not mentioned here https://github.com/FormidableLabs/spectacle/blob/main/packages/create-spectacle/src/templates/package.ts#L25-L44