SyntaxError: Unexpected token *
n3oney opened this issue · comments
I'm using Next.JS and TypeScript.
My code:
import React from "react";
import Link from "next/link"
import {
Navbar, NavbarContainer, NavbarSticky, NavItem
} from "uikit-react";
export default class App extends React.Component {
render() {
return(
<div id={"App"}>
<NavbarSticky>
<NavbarContainer>
<Navbar left>
<NavItem>
<Link href={"/"}>Strona główna</Link>
</NavItem>
</Navbar>
</NavbarContainer>
</NavbarSticky>
</div>
);
}
}
The error:
/Users/neoney/code/React/strona/node_modules/uikit-react/lib/uikit-react.js:1
import * as _classNames from 'classnames';
^
SyntaxError: Unexpected token *
Sorry for the delay, will look into this this weekend.
Can you post your tsconfig? The gh-pages branch uses uikit-react and works. try using these settings
https://github.com/vacarsu/uikit-react/blob/gh-pages/tsconfig.json
Sorry, stopped using the library. You can close the issue.