WordPress database error: [Can't create/write to file '/tmp/#sql-temptable-4db-153249-34.MAI' (Errcode: 28 "No space left on device")]SELECT p.* FROM wp_mdb_forum_posts AS p LEFT JOIN wp_mdb_forum_posts AS q ON( q.Id = p.ParentId AND p.Id = q.AcceptedAnswerId ) WHERE p.PostTypeId = 2 AND p.ParentId = 94982 GROUP BY p.Id ORDER BY CASE WHEN q.Id IS NOT NULL THEN 1 ELSE 0 END DESC, p.UpvoteCount DESC, p.CreationDate ASC
Topic: Angular - lesson 8 - deploy to firebase [error no default export]
soccerdon1981
asked 7 years ago
First of all, this walkthrough / lesson guide is amazing! I've learned so much already. Secondly, here's the issue I'm having. lol
I received this error:
idb.services.ts ERROR: idb/lib/idb has no default export
While trying to complete this step:
After initializing the application we have nothing else left to do but to send it to the Firebase servers. But first we have to build a production version of our application! To do this, run the command below in the terminal of your application.
npm run pwa
This is the section of the Angular Lesson that I'm having an issue with:
Angular - lesson 8 - deploy to firebase...
Here's the code that I'm receiving an error on as well as the file location:
C:\xampp\htdocs\Angular Alpha 001\mdb-angular-small-bundle-7.4.1\ng-uikit-pro-standard-7.4.1\ng-uikit-pro-standard-7.4.1\src\app\services\idb.services.ts
import {Injectable} from '@angular/core';
import idb from 'idb';
import {Observable, Subject} from 'rxjs';
import {Schedule} from '../app.component';
@Injectable({
providedIn: 'root'
})
export class IdbService {
private _dataChange: Subject<Schedule> = new Subject<Schedule>();
private _dbPromise;
constructor() {
}
connectToIDB() {
this._dbPromise = idb.open('pwa-database', 1,
UpgradeDB => {
if (!UpgradeDB.objectStoreNames.contains('Items')) {
UpgradeDB.createObjectStore('Items', {keyPath: 'id', autoIncrement: true});
}
if (!UpgradeDB.objectStoreNames.contains('Sync-Items')) {
UpgradeDB.createObjectStore('Sync-Items', {keyPath: 'id', autoIncrement: true});
}
}); }
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB Angular
- MDB Version: 7.4.1
- Device: PC
- Browser: Chrome
- OS: Windows 10 Home 64-bit
- Provided sample code: No
- Provided link: Yes