Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is a crash report after installing the library #1974

Open
vkochatkov opened this issue May 4, 2022 · 3 comments
Open

There is a crash report after installing the library #1974

vkochatkov opened this issue May 4, 2022 · 3 comments
Labels

Comments

@vkochatkov
Copy link

vkochatkov commented May 4, 2022

Expected Behavior

Hi,
I saw a similar problem here but it is not clear how to solve this problem.
I want to work with this library on the project. And I have a crash report after running:

Actual Behavior

./node_modules/scratch-paint/src/containers/paint-editor.jsx 308:12
Module parse failed: Unexpected token (308:12)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|     render () {
|         return (
>             <PaintEditorComponent
|                 canRedo={this.props.shouldShowRedo}
|                 canUndo={this.props.shouldShowUndo} 

It does not work in any react project that I have.

Steps to Reproduce

Simple way: create a blank react project with e.g. CRA with type-script, npm install scratch-paint

import React from 'react'
import PaintEditor from 'scratch-paint'

const App = () => {
  return (
    <>
        <PaintEditor imageFormat="svg" rtl={true} />
    </>
  )
}

export default App

System Details

NPM 6.14.6

@BryceLTaylor
Copy link
Contributor

Does it work if you import from scratch-paint/dist?

@vkochatkov
Copy link
Author

vkochatkov commented May 6, 2022 via email

@shaheerqb
Copy link

Facing the same issue. any solution to this problem ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants