tomdale / ember-network Goto Github PK
View Code? Open in Web Editor NEWUniversal fetch() polyfill (FastBoot and browser) for Ember apps
License: MIT License
Universal fetch() polyfill (FastBoot and browser) for Ember apps
License: MIT License
Hi,
I have this problem on private project build.
I remember another problem like this when to solve I moved a file during build, but I don't remember exactly the path of file.
Any idea abou this problem?
Thanks!
➜ my_project git:(my_branch) ✗ ember s
DEPRECATION: ember-cli-test-loader should now be included as an NPM module with version 1.1.0 or greater.
Livereload server on http://localhost:49153
Serving on http://localhost:4200/
The Broccoli Plugin: [object Object] failed with:
Error: ENOENT: no such file or directory, stat '/home/wellington/my_project/node_modules/ember-network/assets/module-template.js.t'
at Error (native)
at Object.fs.statSync (fs.js:844:18)
at Filter.Template.currentTemplateFile (/home/wellington/my_project/node_modules/broccoli-templater/index.js:22:18)
at Filter.Template.processAndCacheFile (/home/wellington/my_project/node_modules/broccoli-templater/index.js:45:27)
at /home/wellington/my_project/node_modules/broccoli-templater/node_modules/broccoli-filter/index.js:43:23
at /home/wellington/my_project/node_modules/promise-map-series/index.js:11:14
at tryCatch (/home/wellington/my_project/node_modules/rsvp/dist/rsvp.js:539:12)
at invokeCallback (/home/wellington/my_project/node_modules/rsvp/dist/rsvp.js:554:13)
at /home/wellington/my_project/node_modules/rsvp/dist/rsvp.js:629:16
at flush (/home/wellington/my_project/node_modules/rsvp/dist/rsvp.js:2414:5)
at nextTickCallbackWith0Args (node.js:436:9)
at process._tickCallback (node.js:365:13)
The broccoli plugin was instantiated at:
undefined
cleaning up...
Build failed.
The Broccoli Plugin: [object Object] failed with:
undefined
The broccoli plugin was instantiated at:
undefined
Similar to ember-cli/ember-cli#5571
Win10, cli 2.4.2, node 5.7.0, npm 5.6.0
Anyone else having this issue: ef4/ember-browserify#113
⠋ Buildingapp.import is not a function
TypeError: app.import is not a function
at Class.module.exports.included (/Users/tchak/git/github/ember-cli/ember-ajax/node_modules/ember-network/index.js:17:15)
at /Users/tchak/git/github/ember-cli/ember-ajax/node_modules/ember-cli/lib/models/addon.js:244:32
Steps to reproduce:
ember install ember-network
ember test
treeForBrowserFetch method in index.js creates a funnel object with destDir having absolute Path. Should change it to relative path to utilize change tracking.
Is this compatible with the wait
test helper?
I'm using fetch
inside a component and I need to write an integration test for my component. I can't escape the error Assertion after the final
assert.async was resolved
though. I've tried several techniques to no avail.
There was an error running your app in fastboot. More info about the error:
Error: Cannot find module 'node-fetch'
I'm not convinced this is a bug in this repo. I'm using ember-cli-moment-shim
successfully in fastboot and the moment
require is working. I don't know what's different about this addon that the node-fetch
won't resolve. I've read through all the code here and couldn't find the issue. Do you have any pointers for me? I've tried npm i node-fetch
to flatten the module, but that didn't help.
npm ls node-fetch
├─┬ [email protected]
│ └─┬ [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
└── [email protected] extraneous
I suspect ember-network
aim(s|ed) to be more lofty, supporting other protocols. Maybe we should resurrect when it does support more, or is that inbound?
I'm trying to follow the set up in the Testing section of the README. When I ran ember install fetch-mock ember-browserify
I get this error: Install failed. Could not find addon with name: fetch-mock
I think this should be:
npm install fetch-mock
ember install ember-browserify
Right?
Will I need to initiate a manual run-loop using this add-on or is this handled for me?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.