Skip to content

appropriate loader to handle this file type #21

@gopalramadugu

Description

@gopalramadugu

(INFORMATION):

  • Contributions are welcomed and appreciated with open hearts and open fingers. Before you continue, consider the following: If you have a "How do I do ...?" question, this is not the proper channel. Instead, please use stackoverflow: stackoverflow.com/questions/tagged/smoothslider
  • These "Issues" are meant for technical problems, bugs, and proposals related to the library, although, exceptions are made for noteworthy cases. If you're reporting a bug, please use the below bug template.

(BUG TEMPLATE):

What's your environment:

Babel 7, preact 8.4.2

Expected behavior:

App should run

Actual behavior:

Getting below error.
`./node_modules/smoothslider/component/index.js 92:6
Module parse failed: Unexpected token (92:6)
You may need an appropriate loader to handle this file type.
| descriptionStyles = Object.assign(background, descriptionStyles);
| return (

  <div className='smooth-slider'>

|


| {children}
`

What steps and/or code will reproduce the bug:

Added the SmoothSlider Library.
.babelrc
{ "presets": ["@babel/preset-env", "@babel/preset-react"], "plugins": [ ["@babel/plugin-transform-react-jsx", { "pragma":"h" }], ["@babel/plugin-proposal-decorators", { "legacy": true }], ["@babel/plugin-proposal-class-properties"], ["@babel/plugin-transform-runtime"], ["@babel/plugin-transform-object-assign"], ["@babel/plugin-proposal-object-rest-spread", { "loose": true, "useBuiltIns": true }], ["@babel/plugin-transform-destructuring"] ] }

Have you identified what's causing the bug and/or potential solutions:

Tied multiple plugins but no luck.

Additional information and details:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions