kkemple / kkemple/universal-components-example

Universal components package not going through the babel loader

Open
#5 7 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
35
Forks
6
PR merge metrics
No merged PRs in 30d

Description

Hey, I've tried using the universal components package in the web example and it seems it's not going through the babel loader
```
../universal-components/components/button/index.js
Module parse failed: Unexpected token (13:7)
You may need an appropriate loader to handle this file type.
| import PropTypes from 'prop-types';
|
| export type ButtonProps = {
| backgroundColor: string,
| fontColor: string,
```

Any ideas why?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by inspecting the web example's Babel loader configuration and how it handles ../universal-components/components/button/index.js. Reproduce the build error, then verify that the universal components package is transpiled successfully and the web example builds without the parse failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
babel, javascript
Domain
build-system, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.