Open xavierMartinezMartinez opened 9 months ago
@xavierMartinezMartinez can you tell me which project SQLite Part1 Part2 angular, react, vue
@jepiqueau in Angular
@jepiqueau I have followed all the steps you describe but it gives me the error I mentioned. While if I run your project directly it works for me, everything with angular always
@xavierMartinezMartinez OK i will have to check is it the Part-1 or the Part-2
@jepiqueau Part-2
@xavierMartinezMartinez as i am following the tutorial did you follow Part-1 and then did Part-2 or did you start Part-2 directly. If you want to run the app in the Web you must follow Part-1 and then do Part-2 to have it working in native
@xavierMartinezMartinez can you show me your package.json file
@xavierMartinezMartinez I did follow step by step the 2023-08-26-Ionic7Angular-SQLite-CRUD-App.md till the Part-1 Conclusion and it works fine on MacOs. My package.json is
{
"name": "ionic7-angular-sqlite-app",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "https://ionicframework.com/",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"ionic:serve:before": "npm run copy:sql:wasm",
"copy:sql:wasm": "copyfiles -u 3 node_modules/sql.js/dist/sql-wasm.wasm src/assets",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"lint": "ng lint"
},
"private": true,
"dependencies": {
"@angular/animations": "^17.0.2",
"@angular/common": "^17.0.2",
"@angular/compiler": "^17.0.2",
"@angular/core": "^17.0.2",
"@angular/forms": "^17.0.2",
"@angular/platform-browser": "^17.0.2",
"@angular/platform-browser-dynamic": "^17.0.2",
"@angular/router": "^17.0.2",
"@capacitor-community/sqlite": "^5.5.1-4",
"@capacitor/app": "5.0.6",
"@capacitor/core": "5.6.0",
"@capacitor/haptics": "5.0.6",
"@capacitor/keyboard": "5.0.7",
"@capacitor/status-bar": "5.0.6",
"@capacitor/toast": "^5.0.6",
"@ionic/angular": "^7.5.0",
"@ionic/pwa-elements": "^3.2.2",
"ionicons": "^7.2.1",
"rxjs": "~7.8.0",
"tslib": "^2.3.0",
"zone.js": "~0.14.2"
},
"devDependencies": {
"@angular-devkit/build-angular": "^17.0.0",
"@angular-eslint/builder": "^17.0.0",
"@angular-eslint/eslint-plugin": "^17.0.0",
"@angular-eslint/eslint-plugin-template": "^17.0.0",
"@angular-eslint/schematics": "^17.0.0",
"@angular-eslint/template-parser": "^17.0.0",
"@angular/cli": "^17.0.0",
"@angular/compiler-cli": "^17.0.2",
"@angular/language-service": "^17.0.2",
"@capacitor/cli": "5.6.0",
"@ionic/angular-toolkit": "^9.0.0",
"@types/jasmine": "~5.1.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"copyfiles": "^2.4.1",
"eslint": "^7.26.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jsdoc": "30.7.6",
"eslint-plugin-prefer-arrow": "1.2.2",
"jasmine-core": "~5.1.0",
"jasmine-spec-reporter": "~5.0.0",
"karma": "~6.4.0",
"karma-chrome-launcher": "~3.2.0",
"karma-coverage": "~2.2.0",
"karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.1.0",
"ts-node": "^8.3.0",
"typescript": "~5.2.2"
},
"description": "An Ionic project"
}
if i check in the modules the version of "jeep-sqlite" is 2.5.6 and the version of "sql.js" is 1.8.0
@xavierMartinezMartinez as i am following the tutorial did you follow Part-1 and then did Part-2 or did you start Part-2 directly. If you want to run the app in the Web you must follow Part-1 and then do Part-2 to have it working in native
@jepiqueau directly start Part-2
@xavierMartinezMartinez if you start directly with Part-2 you do not have the things properly instantiate for the Web or the error you 've got is when you run ionic serve or npm start
I had a problem, I followed the steps as the project is but when I compile it with ionic server I get a two errors or memory out error and not created file wasm