Skip to content

CodePane not working properly when using create-react-app #456

@treble37

Description

@treble37

Hi,

I followed create-react-app my-presentation --scripts-version spectacle-scripts to create a simple presentation.

I have a CodePane like:

<CodePane lang="elixir" source={require("raw-loader!./assets/digger_step1.example")} />

I get the following error:

Failed to Compile displays in the browser along with a message Line 63: Unexpected '!' in 'raw-loader!./assets/demo.example'. Do not use import syntax to configure webpack loaders import/no-webpack-loader-syntax

I added "raw-loader": "^0.5.1" in the package.json and did npm install but that hasn't resolved the issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions