admin: Uncaught SyntaxError: Unexpected token import
After i edit the src/App.js with the example in the Getting Started, i get this error : Uncaught SyntaxError: Unexpected token import
It originates from the line import _AdminBuilder from './AdminBuilder';
Seen here :
/* 268 */
/*!*******************************************!*\
!*** ./~/api-platform-admin/lib/index.js ***!
\*******************************************/
/***/ function(module, exports) {
import _AdminBuilder from './AdminBuilder';
export { _AdminBuilder as AdminBuilder };
import _Create from './Create';
export { _Create as Create };
import _Edit from './Edit';
export { _Edit as Edit };
import _fieldFactory from './fieldFactory';
export { _fieldFactory as fieldFactory };
import _inputFactory from './inputFactory';
export { _inputFactory as inputFactory };
import _List from './List';
export { _List as List };
import _Show from './Show';
export { _Show as Show };
export * from './hydra';
I also get several warnings from the yarn add api-platform-admin command :
yarn add api-platform-admin
yarn add v0.27.5
[1/4] Resolving packages...
warning api-platform-admin > lodash.isarray@4.0.0: This package is deprecated. Use Array.isArray.
[2/4] Fetching packages...
warning fsevents@1.0.17: The platform "linux" is incompatible with this module.
info "fsevents@1.0.17" is an optional dependency and failed compatibility check. Excluding it from installation.
warning fsevents@1.1.2: The platform "linux" is incompatible with this module.
info "fsevents@1.1.2" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 66 new dependencies.
Could it come from these ?
Regards,
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (8 by maintainers)
I don’t think I have the rights.