Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ember g pouch-adapter application breaks ember server with syntax error #261

Open
rotateLeft opened this issue May 6, 2020 · 2 comments

Comments

@rotateLeft
Copy link

rotateLeft commented May 6, 2020

Issue

New to PouchDB and Ember. Following the instructions on https://github.com/pouchdb-community/ember-pouch.

When running the command "ember g pouch-adapter application", the Ember server breaks with an invalid syntax error:

Build Error (broccoli-persistent-filter:Babel > [Babel: pouch-data]) in pouch-data/adapters/application.js

/home/ember/pouch_data/pouch-data/adapters/application.js: Identifier 'config' has already been declared (33:7)

  31 |   }
  32 | });
> 33 | import config from 'pouch-data/config/environment';
     |        ^
  34 | import PouchDB from 'pouchdb';
  35 | import { Adapter } from 'ember-pouch';
  36 | import { assert } from '@ember/debug';


Stack Trace and Error Report: /tmp/error.dump.637edf5f490e357f59899b080ca803f2.log

Info

  • Environ:
    ember-cli: 3.17.0
    node: 12.16.1
    os: linux x64
    ember-pouch: 7.0.0
    Fedora 31 x64 VM

  • Adapter: IndexedDB ?

  • Server: PouchDB Server

Reproduce

ember new test_project
cd test_project
npm install pouchdb-server
ember install ember-pouch
ember g pouch-adapter application
ember serve

Contents of generated application adapter attached.
error.txt

@broerse
Copy link
Collaborator

broerse commented May 6, 2020

Sorry about this. Is was fixed yesterday om master #257 but we have not released a new version.

Until we do use this adapter: https://github.com/pouchdb-community/ember-pouch/blob/master/blueprints/pouch-adapter/files/__root__/adapters/__name__.js

@bevinhex
Copy link

bevinhex commented Aug 1, 2022

after two years, still same issue, isn't it possible to publish a patched version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants