Comments (12)
solved after i added this to tsconfig.json under compiler options
"typeRoots": [
"node_modules/@types"
]
from starters.
@dwieeb Ah yes... good point. Please fix this AWS 👍
from starters.
@ianholden123 Do you mind if I keep this open? It's still an issue for new apps, correct?
from starters.
Seven days and this hasn't been addressed? It would be nice to know whether or not someone is working on it. This is definitely an installer bug.
from starters.
@dwieeb The most significant change is the README. There are a couple of small code changes, .gitignore, a couple deleted files, and a dependency update. When I get a chance, I'll send a PR to the starter repo.
from starters.
yes. facing same issue too
from starters.
Same here. Reaching out to my AWS rep. hopefully they'll get on it.
from starters.
@kartik0312 -- Thanks for your help. That addition to the tsconfig.ts file removed all but one of my issues.
I was left with a "no type definitions" error for the paho-mqtt library. To resolve this error, I installed the type definitions for this library by running: npm install --save-dev @types/paho-mqtt
.
My application is now running without errors 😄
from starters.
If anyone is interested in a "cleaner" starter, I've created a project that implements these changes. I'm still having problems with the Account page and user files on AWS.
https://github.com/benevolentprof/ionic-aws-starter
from starters.
@benevolentprof Are there any changes in your fork that might make sense in the aws starter? The gitignore, perhaps? I know the types installations should be fixed upstream. I'd be happy to look at any PRs you send.
from starters.
Created a fresh AWS starter project and it builds and runs fine locally but the build fails on IonicPro.
The error is:
Can't resolve '../../aws-exports'
The file exists in the correct place...
Any ideas?
Local
$ ionic info
Ionic:
ionic (Ionic CLI) : 4.0.3 (/Users/johan/.nvm/versions/node/v8.11.3/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.1.11
System:
NodeJS : v8.11.3 (/Users/johan/.nvm/versions/node/v8.11.3/bin/node)
npm : 5.6.0
OS : macOS Sierra
IonicPro
...
$ ionic info
WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
cli packages: (/usr/local/lib/node_modules)
@ionic/cli-utils : 2.0.0-testing.fa20842b
ionic (Ionic CLI) : 4.0.0-testing.fa20842b
local packages:
@ionic/app-scripts : 3.1.11
Ionic Framework : ionic-angular 3.9.2
System:
NodeJS : v8.11.1
npm : 5.10.0
OS : Linux 4.4
$ ionic info success
Build script detected in package.json...
$ npm run build
WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[email protected] build /usr/src/app
ionic-app-scripts build
[16:01:58] ionic-app-scripts 3.1.11
[16:01:58] build dev started ...
[16:01:58] clean started ...
[16:01:58] clean finished in 4 ms
[16:01:58] copy started ...
[16:01:58] deeplinks started ...
[16:01:59] deeplinks finished in 102 ms
[16:01:59] transpile started ...
[16:02:36] transpile finished in 37.58 s
[16:02:36] preprocess started ...
[16:02:36] preprocess finished in 1 ms
[16:02:36] webpack started ...
[16:02:37] copy finished in 38.77 s
[16:03:13] ionic-app-script task: "build"
[16:03:13] Error: ./src/pages/tasks/tasks.ts Module not found: Error: Can't resolve '../../aws-exports' in
'/usr/src/app/src/pages/tasks' resolve '../../aws-exports' in '/usr/src/app/src/pages/tasks' using
description file: /usr/src/app/package.json (relative path: ./src/pages/tasks) Field 'browser' doesn't
contain a valid alias configuration after using description file: /usr/src/app/package.json (relative path:
./src/pages/tasks) using description file: /usr/src/app/package.json (relative path: ./src/aws-exports) no
extension Field 'browser' doesn't contain a valid alias configuration /usr/src/app/src/aws-exports doesn't
exist .ts Field 'browser' doesn't contain a valid alias configuration /usr/src/app/src/aws-exports.ts
doesn't exist .js Field 'browser' doesn't contain a valid alias configuration
/usr/src/app/src/aws-exports.js doesn't exist .json Field 'browser' doesn't contain a valid alias
...
from starters.
I have found the problem with the IonicPro build.
Turns out that the awsmobile cli adds the following line to the .gitignore
-file:
aws-exports.*
Removing this line and committing aws-exports.js
to the repo and now all is working!
aws-exports.js
is generated but it's not part of the ionic build so it isn't available unless it is committed.
from starters.
Related Issues (20)
- Sidemenu starter fails with typescript error HOT 1
- Feature Request: Tag Major Versions of Ionic Framework HOT 1
- Feature Request: Publish Changelogs
- bug: typescript compiler options "target" and "useDefineForClassFields" are forcibly overriden with Angular 15 HOT 3
- Bug: vertical centering buggy in tabs template HOT 1
- Angular starters are inconsistent with tests and `beforeEach()` strategy
- test
- bug(react): .gitignore correct production folder
- CommonModule missing in angular-standalone blank starter HOT 1
- bug: starter template not running HOT 6
- bug: keyboard accessibiilty. Cannot reach bottom tabs. HOT 3
- bug: SyntaxError: The requested module 'vue' does not provide an export named 'computed' HOT 2
- Upgrade vue starter to vue@^3.3.0 HOT 2
- bug: error during build: terser not found. Since Vite v3, terser has become an optional dependency. You need to install it.
- Vue: `npm run lint` is not actually linting anything HOT 1
- bug: Angular Tab based application shows empty screen between hiding the Splash Screen and Displaying the Tabs. HOT 4
- test
- Peer dependency errors when starting a new project with Angular
- eslint not properly configured on react vite app
- eslint misconfigured (react-typescript) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from starters.