CodePane not working properly when using create-react-app
See original GitHub issueHi,
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.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:15
- Comments:13 (5 by maintainers)
Top Results From Across the Web
Using React in Codepen but not getting anything
It's a simple code that should return three clickable buttons but I see nothing in the output window other than blank, and I'm...
Read more >React App not rendering on Codepen - JavaScript
I've been making the 25 + 5 clock project but my app is not rendering on codepen. Here's the link to pen: codepan...
Read more >create-react-app - CodePen
Insecure Resource. The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https....
Read more >Front End Libraries Projects - Build a Random Quote Machine ...
Describe your problem and how to reproduce it: Challenge says You can build your project by forking this CodePen pen. Or you can...
Read more >Integrating with Other Libraries - React
How to Approach the Problem. To demonstrate this, let's sketch out a wrapper for a generic jQuery plugin. We will attach a ref...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’d be fine with adding
raw-loader
to spectacle scripts. After all, that’s the point of having a custom fork ofreact-scripts
in the first place. (Also,spectacle-scripts
needs to have the latest version ofreact-scripts
merged in anyway.)It looks like this landed in
spectacle-scripts
a while ago https://github.com/FormidableLabs/spectacle-scripts/pull/2 but we maybe forgot to publish it to npm.Can someone verify / try things off of github master and report back here? Thanks!