-
Notifications
You must be signed in to change notification settings - Fork 123
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
Don't compile their code to ES5 before publishing to npm #205
Comments
Its strange. I didn't use
App.js import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import { FileManager, FileNavigator } from '@opuscapita/react-filemanager';
import connectorNodeV1 from '@opuscapita/react-filemanager-connector-node-v1';
const apiOptions = {
...connectorNodeV1.apiOptions,
apiRoot: `http://localhost:3020/api` // Or you local Server Node V1 installation.
};
const fileManager = (
<div style={{ height: '480px' }}>
<FileManager>
<FileNavigator
id="filemanager-1"
api={connectorNodeV1.api}
apiOptions={apiOptions}
capabilities={connectorNodeV1.capabilities}
initialResourceId={'Lw'}
listViewLayout={connectorNodeV1.listViewLayout}
viewLayoutOptions={connectorNodeV1.viewLayoutOptions}
/>
</FileManager>
</div>
);
class App extends Component {
render() {
return (
<div className="App">
{fileManager}
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h1 className="App-title">Welcome to React</h1>
</header>
<p className="App-intro">
To get started, edit <code>src/App.js</code> and save to reload.
</p>
</div>
);
}
}
export default App;
Result: Can you provide more information if your issue still relevant? |
Yes, you can run it with |
Yes, I follow your steps but it will get many errors from your libs. How I can change it to es5 code? |
I replace let re = /{\w+}/g; return translation.replace(re, replace); var re = /{\w+}/g; return translation.replace(re, replace); |
Fixed in @TungXuan, thanks again for a bug reporting! 🪲 🔫 |
When build production version with
react-scripts build
I got the bellow error:Failed to minify the code from this file: ./node_modules/@opuscapita/react-filemanager/lib/index.js:32612
The text was updated successfully, but these errors were encountered: