Comments (12)
If I import it like this, it works: const reactive = require('feathers-reactive');
I'm not sure why the above is the case, as all other feathers plugins I can use the import statement.
from feathers-reactive.
Could this be your issue? webpack/webpack#1794
from feathers-reactive.
I think @eddyystop got it. It will work with
import reactive from 'feathers-reactive';
// or
const reactive = require('feathers-reactive');
from feathers-reactive.
The first gives me this error:
ERROR in /Users/patrickpereira/lazy/backend/src/app/shared/api/api.service.ts (11,22): Cannot find module 'feathers-reactive'.)
Second one is working, so I'm just using that.
from feathers-reactive.
That seems odd. I'll give it another try.
from feathers-reactive.
@patrickpereira create a .d.ts file containing declare module 'feathers-reactive'
from feathers-reactive.
Watch out @j2L4e , you are becoming our TS guy !
from feathers-reactive.
This TypeScript files has been updated in the recently released v0.5.0 so I am going to close this.
from feathers-reactive.
Still seems to be happening. @j2L4e If you get a chance, could you check if latest works with https://github.com/feathersjs/feathers-chat-angular ?
from feathers-reactive.
Still failing, steps to reproduce:
- Download https://github.com/feathersjs/feathers-chat-angular
- Update feathers-reactive version to 0.5.0 in package.json
- run:
npm install
- run:
ng serve
** Note ** I tried this but didn't work: Try adding declare module 'feathers-reactive'
to node_modules/feathers-reactive/index.d.ts
Result:
ERROR in ./src/app/services/feathers.service.ts
Module not found: Error: Can't resolve 'feathers-reactive' in '/Users/ohull/Downloads/feathers-chat-angular-master/src/app/services'
@ ./src/app/services/feathers.service.ts 12:0-48
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://localhost:4200 ./src/main.ts
from feathers-reactive.
I made it work like this in Angular 4:
import * as reactive from 'feathers-reactive/lib';
from feathers-reactive.
Reproduced.
However I started a new angular (cli version 1.3.2) project with feathers-reactive 0.5.0 yesterday and it works just fine. I'll investigate.
from feathers-reactive.
Related Issues (20)
- An in-range update of webpack is breaking the build 🚨 HOT 8
- Sequelize query with $like throws unknown operation $like error HOT 3
- An in-range update of webpack-cli is breaking the build 🚨 HOT 5
- An in-range update of @types/feathersjs__feathers is breaking the build 🚨 HOT 4
- An in-range update of babel-plugin-add-module-exports is breaking the build 🚨 HOT 2
- An in-range update of babel-loader is breaking the build 🚨 HOT 1
- `@feathersjs/adapter-commons` dependency
- Typings support for feathers-reactive HOT 3
- An in-range update of webpack is breaking the build 🚨 HOT 2
- How force subscribe to fetch agian HOT 4
- How to unsubscribe() ? HOT 2
- Dove Support HOT 7
- Allow to Re-fetch all data when using smart listStrategy
- Hook generating patched/updated event before created event generates doublons
- Cannot call addListener on the client service connection HOT 14
- Cannot use import statement outside a module on v0.10.0 HOT 4
- Adding watch() in Angular HOT 1
- Failure to import in v0.10 HOT 3
- Sort property not available on objects raises an error
- Error: Cannot find namespace 'sift'. HOT 3
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 feathers-reactive.