Comments (4)
Your module loader needs to be configured to transpile this module using a modern version of Javascript (ES2018 or later I believe) - there is additional documentation on module loaders in the Feathers client API.
from hooks.
Your module loader needs to be configured to transpile this module using a modern version of Javascript (ES2018 or later I believe) - there is additional documentation on module loaders in the Feathers client API.
okay, i'm added
config.module.rules.push({
test: /\.jsx?$/,
exclude: /node_modules(\/|\\)(?!(@feathersjs|debug))/,
loader: 'babel-loader'
})
and still have this
Module parse failed: Unexpected token (59:34) friendly-errors 21:09:58
File was processed with these loaders:
* ./node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
|
| middleware(middleware) {
> this._middleware = middleware?.length ? middleware : null;
| return this;
| }
from hooks.
Whoops, just confirmed, the required preset is ES2020.
from hooks.
preset
will be babel-loader or stay es2020 ?
from hooks.
Related Issues (20)
- Version 0.7.x fails to compile in Webpack HOT 3
- Error hooks - re-throwing vs assigning context.error
- Allow to change the order of middleware HOT 2
- integrate it to existing feathers app HOT 7
- Combining multiple middleware with compose HOT 1
- API usage improvements HOT 1
- Brings webpack as dependency and many other due to that HOT 6
- Unable to add a context collector for all methods of an object HOT 1
- Performance optimizations HOT 8
- Turn .params, .props and .defaults into hooks HOT 2
- Order of multiple hooks: mismatch of documentation and behavior HOT 2
- Is it possible to remove a hook? HOT 2
- Wrong method name in context.method HOT 6
- Result and undefined HOT 8
- function.length is lost HOT 4
- Deno port chores HOT 1
- Error: Could not dynamically require "./base.js". HOT 3
- Notes on regular hooks support HOT 1
- Critical dependency: require function is used in a way in which dependencies cannot be statically extracted HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hooks.