https://github.com/seancodes/ember-file-upload-bug-demo
https://github.com/seancodes/ember-file-upload-bug-demo
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/seancodes/ember-file-upload-bug-demo
- Owner: seanCodes
- Created: 2023-05-15T19:56:26.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-15T19:56:44.000Z (about 3 years ago)
- Last Synced: 2025-10-31T02:59:02.462Z (9 months ago)
- Language: JavaScript
- Size: 193 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bug Demo for ember-file-upload
This is a demo repo for the issue [adopted-ember-addons/ember-file-upload#929](https://github.com/adopted-ember-addons/ember-file-upload/issues/929).
### Reproduction
1. `npm install`
2. `ember serve`
3. Navigate to http://localhost:4200/ or http://localhost:4200/tests/
Error:
```
Uncaught Error: Could not find module `miragejs` imported from `ember-file-upload`
```
See `controllers/application.js` for the code causing the issue:
```js
import Controller from '@ember/controller'
import { action } from '@ember/object'
import { UploadFile } from 'ember-file-upload'
export default class ApplicationController extends Controller {
@action
foo() {
const file = new File(['foo'], 'foo.txt', { type: 'text/plain' })
console.log(new UploadFile(file))
}
}
```