ng build --prod
Date: 2017-12-16T12:11:38.469Z
Hash: 9af9d0824b91129853ac
Time: 3766ms
chunk {0} (styles) [initial] [rendered]
chunk {1} polyfills.bf31271ed8358d9c1c6b.bundle.js (polyfills) 155 bytes [initial] [rendered]
chunk {2} main.a0f3445c4f3c97baab24.bundle.js (main) 149 bytes [initial] [rendered]
chunk {3} inline.c30c9795283a00740af2.bundle.js (inline) 1.45 kB [entry] [rendered]
ERROR in multi ./src/main.ts
Module not found: Error: Can't resolve '/Users/tyyiu/Documents/Code/IONIC/quorra/src/main.ts' in '/Users/tyyiu/Documents/Code/IONIC/quorra/node_modules/#angular/c
li/models/webpack-configs'
resolve '/Users/tyyiu/Documents/Code/IONIC/quorra/src/main.ts' in '/Users/tyyiu/Documents/Code/IONIC/quorra/node_modules/#angular/cli/models/webpack-configs'
using description file: /Users/tyyiu/Documents/Code/IONIC/quorra/node_modules/#angular/cli/package.json (relative path: ./models/webpack-configs)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /Users/tyyiu/Documents/Code/IONIC/quorra/node_modules/#angular/cli/package.json (relative path: ./models/webpack-configs)
using description file: /Users/tyyiu/Documents/Code/IONIC/quorra/package.json (relative path: ./src/main.ts)
no extension
Field 'browser' doesn't contain a valid alias configuration
/Users/tyyiu/Documents/Code/IONIC/quorra/src/main.ts doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
/Users/tyyiu/Documents/Code/IONIC/quorra/src/main.ts.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/Users/tyyiu/Documents/Code/IONIC/quorra/src/main.ts.js doesn't exist
as directory
/Users/tyyiu/Documents/Code/IONIC/quorra/src/main.ts doesn't exist
[/Users/tyyiu/Documents/Code/IONIC/quorra/src/main.ts]
[/Users/tyyiu/Documents/Code/IONIC/quorra/src/main.ts.ts]
[/Users/tyyiu/Documents/Code/IONIC/quorra/src/main.ts.js]
[/Users/tyyiu/Documents/Code/IONIC/quorra/src/main.ts]
# multi ./src/main.ts
ERROR in multi ./src/polyfills.ts
Module not found: Error: Can't resolve '/Users/tyyiu/Documents/Code/IONIC/quorra/src/polyfills.ts' in '/Users/tyyiu/Documents/Code/IONIC/quorra/node_modules/#angu
lar/cli/models/webpack-configs'
resolve '/Users/tyyiu/Documents/Code/IONIC/quorra/src/polyfills.ts' in '/Users/tyyiu/Documents/Code/IONIC/quorra/node_modules/#angular/cli/models/webpack-configs'
using description file: /Users/tyyiu/Documents/Code/IONIC/quorra/node_modules/#angular/cli/package.json (relative path: ./models/webpack-configs)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /Users/tyyiu/Documents/Code/IONIC/quorra/node_modules/#angular/cli/package.json (relative path: ./models/webpack-configs)
using description file: /Users/tyyiu/Documents/Code/IONIC/quorra/package.json (relative path: ./src/polyfills.ts)
no extension
Field 'browser' doesn't contain a valid alias configuration
/Users/tyyiu/Documents/Code/IONIC/quorra/src/polyfills.ts doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
/Users/tyyiu/Documents/Code/IONIC/quorra/src/polyfills.ts.ts doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
/Users/tyyiu/Documents/Code/IONIC/quorra/src/polyfills.ts.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/Users/tyyiu/Documents/Code/IONIC/quorra/src/polyfills.ts.js doesn't exist
as directory
/Users/tyyiu/Documents/Code/IONIC/quorra/src/polyfills.ts doesn't exist
[/Users/tyyiu/Documents/Code/IONIC/quorra/src/polyfills.ts]
[/Users/tyyiu/Documents/Code/IONIC/quorra/src/polyfills.ts.ts]
[/Users/tyyiu/Documents/Code/IONIC/quorra/src/polyfills.ts.js]
[/Users/tyyiu/Documents/Code/IONIC/quorra/src/polyfills.ts]
# multi ./src/polyfills.ts
ERROR in multi ./src/styles.css
Module not found: Error: Can't resolve '/Users/tyyiu/Documents/Code/IONIC/quorra/src/styles.css' in '/Users/tyyiu/Documents/Code/IONIC/quorra/node_modules/#angula
r/cli/models/webpack-configs'
resolve '/Users/tyyiu/Documents/Code/IONIC/quorra/src/styles.css' in '/Users/tyyiu/Documents/Code/IONIC/quorra/node_modules/#angular/cli/models/webpack-configs'
using description file: /Users/tyyiu/Documents/Code/IONIC/quorra/node_modules/#angular/cli/package.json (relative path: ./models/webpack-configs)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /Users/tyyiu/Documents/Code/IONIC/quorra/node_modules/#angular/cli/package.json (relative path: ./models/webpack-configs)
using description file: /Users/tyyiu/Documents/Code/IONIC/quorra/package.json (relative path: ./src/styles.css)
no extension
Field 'browser' doesn't contain a valid alias configuration
/Users/tyyiu/Documents/Code/IONIC/quorra/src/styles.css doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
/Users/tyyiu/Documents/Code/IONIC/quorra/src/styles.css.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/Users/tyyiu/Documents/Code/IONIC/quorra/src/styles.css.js doesn't exist
as directory
/Users/tyyiu/Documents/Code/IONIC/quorra/src/styles.css doesn't exist
[/Users/tyyiu/Documents/Code/IONIC/quorra/src/styles.css]
[/Users/tyyiu/Documents/Code/IONIC/quorra/src/styles.css.ts]
[/Users/tyyiu/Documents/Code/IONIC/quorra/src/styles.css.js]
[/Users/tyyiu/Documents/Code/IONIC/quorra/src/styles.css]
# multi ./src/styles.css
ERROR in TypeError: Cannot read property 'length' of undefined
at createSourceFile (/Users/tyyiu/Documents/Code/IONIC/quorra/node_modules/typescript/lib/typescript.js:16640:109)
at parseSourceFileWorker (/Users/tyyiu/Documents/Code/IONIC/quorra/node_modules/typescript/lib/typescript.js:16572:26)
at Object.parseSourceFile (/Users/tyyiu/Documents/Code/IONIC/quorra/node_modules/typescript/lib/typescript.js:16521:26)
at Object.createSourceFile (/Users/tyyiu/Documents/Code/IONIC/quorra/node_modules/typescript/lib/typescript.js:16371:29)
at new TypeScriptFileRefactor (/Users/tyyiu/Documents/Code/IONIC/quorra/node_modules/#ngtools/webpack/src/refactor.js:79:35)
at Object.resolveEntryModuleFromMain (/Users/tyyiu/Documents/Code/IONIC/quorra/node_modules/#ngtools/webpack/src/entry_resolver.js:108:20)
at Promise.resolve.then.then (/Users/tyyiu/Documents/Code/IONIC/quorra/node_modules/#ngtools/webpack/src/angular_compiler_plugin.js:240:54)
File Tree:
src/tsconfig.json; src/app; src/pages
-> I put the tsconfig.json into the src folder because otherwise, an error says it can't find it.
I would like to know where the error results in and why. if it is because I put the tsconfig.json in the src/folder, then why does then the error of not finding the file, even though it is right there?
My tsconfig.json is just from: https://github.com/kristofferandreasen/simple-ionic-3-app/blob/master/tsconfig.json
first run
npm i
then run the following command
ionic cordova build --release android --prod
That's how you build an angular project not Ionic project. Here's how, you can choose one of the following commands:
$ ionic build
$ ionic cordova build ios
$ ionic cordova build ios --prod --release
$ ionic cordova build ios --device --prod --release -- --developmentTeam="ABCD" --codeSignIdentity="iPhone Developer" --packageType="app-store"
$ ionic cordova build android
$ ionic cordova build android --prod --release -- -- --keystore=filename.keystore --alias=myalias
$ ionic cordova build android --prod --release -- -- --minSdkVersion=21
$ ionic cordova build android --prod --release -- -- --versionCode=55
But from what I see you may want $ ionic build
Related
I am trying to install couchbase on my macOS. I am using pip3 install couchbase to install it.
And I am getting error as
`note: '__uint128_t' declared here
/Library/Developer/C
ommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
note: '__uint128_t' declared here
In file included from src/bucket.c:18:
In file included from src/pycbc.h:45:
In file included from src/python_wrappers.h:20:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_types.h:43:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_wctype_t;
^
note: '__uint128_t' declared here
In file included from src/bucket.c:18:
In file included from src/pycbc.h:45:
In file included from src/python_wrappers.h:20:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:75:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_va_list.h:31:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h:37:2: error: architecture not supported
#error architecture not supported
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
/private/tmp/pip-install-46t38raq/couchbase_25d29b67ce814e2badeb9f2deaba5d2c/cbuild_config.py:271: UserWarning: Adding /usr/local to lib search path for OS X
warnings.warn('Adding /usr/local to lib search path for OS X')
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for couchbase Failed to build couchbase
ERROR: Could not build wheels for couchbase which use PEP 517 and cannot be installed directly
I also tried pip3 install --no-use-pep517 couchbase then also I am getting could not build a wheel for couchbase
I have upgraded my pip to the latest. I have python3.8. I also installed pep517.
I have no idea why but I am unable to use conda within terminal. Conda command results in "ConfigurationLoadError"
ConfigurationLoadError: Unable to load configuration file.
path: /Users/kiranmarathe/.condarc
reason: invalid yaml at line 2, column 42
kiranmarathe$ cat /Users/kiranmarathe/.condarc
channels:
- defaults
- conda-forge
- bioconda
- http://conda.binstar.org/faircloth-lab
Go to the /Users/kiranmarathe/ path and delete the .condarc file. I think the issue will be resolved.
I am a beginner on jekyll. I am following the documentation advice to Build the site on the preview server.
Here is what a did :
- install the last version of ruby
$ruby -v -> ruby 2.4.1p111 (2017-03-22 revision 58053) [x86_64-darwin16]
$ gem --version -> 2.6.14
- Install Jekyll
$gem install jekyll bundler -> Version of jekyll : jekyll-3.6.2
When I try to build the site on the preview server (bundle exec jekyll serve) there is the following error :
jekyll 3.6.2 | Error: (/Users/admin/Documents/Perso/Site-Internet/Jekyll/inger/_config.yml): did not find expected key while parsing a block mapping at line 16 column 1
the line 16 is the first line uncommented that shoul be processed. It is this one
title: Inger Hair at Home at Aix en Provence (line 16)
I don't see what can be wrong. Thank you in advance for your answers
Yaml files are sensitive to spaces, in your _config.yml you have:
# Exclude from processing.
# The following items will not be processed, by default. Create a custom list
# to override the default setting.
exclude:
- Gemfile
- Gemfile.lock
- node_modules
- vendor/bundle/
- vendor/cache/
- vendor/gems/
- vendor/ruby/
- Inger-Analytics-feb0aa8b73d1.json
- .gitignore
When it should be:
# Exclude from processing.
# The following items will not be processed, by default. Create a custom list
# to override the default setting.
exclude:
- Gemfile
- Gemfile.lock
- node_modules
- vendor/bundle/
- vendor/cache/
- vendor/gems/
- vendor/ruby/
- Inger-Analytics-feb0aa8b73d1.json
- .gitignore
Note the space before exclude:. Then it should work.
I downloaded the Omega theme and try to start on my MAC:
But i get this error:
Configuration file: /Users/rname/jekyll/hmfaysal-omega-theme-gh-pages/_config.yml
Source: /Users/rname/jekyll/hmfaysal-omega-theme-gh-pages
Destination: /Users/rname/jekyll/hmfaysal-omega-theme-gh-pages/_site
Generating...
Build Warning: Layout 'none' requested in feed.xml does not exist.
jekyll 2.5.3 | Error: Operation not permitted # unlink_internal - /Users/rnagaraj/jekyll/hmfaysal-omega-theme-gh-pages/_site/LICENSE
As per this and this, try deleting the license file.
I would like to ask, how can I load new module in Kamailio 4.1.2?
Actually, I have an issue, when I tried to compile my kamaiio.cfg
I've got error:
root#kamailio:/usr/local/# kamailio -c kamailio.cfg
loading modules under /usr/local/lib64/kamailio/modules/
0(25392) ERROR: <core> [sr_module.c:587]: load_module(): ERROR: load_module: could not find module <websocket> in </usr/local/lib64/kamailio/modules/>
0(25392) : <core> [cfg.y:3408]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 323, column 12-25: failed to load module
0(25392) ERROR: <core> [cfg.y:3272]: yyparse(): cfg. parser: failed to find command ws_handle_handshake
0(25392) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file /usr/local/etc/kamailio/kamailio.cfg, line 1083, column 27: unknown command, missing loadmodule?
ERROR: bad config file (2 errors)
when I look physically to the /usr/local/lib64/kamailio/modules/ there is some modules, but websocket.so is missing.
So, how can I get and load module in Kamailio?
Thank you for help!
You haven't installed the module websocket. Edit modules.lst file in the source code directory and add websocket to include_modules variable. If you don't have modules.lst, just do:
make cfg
Alternative is to do:
make cfg include_modules="websocket"
By default, the build system for kamailio compiles and install only the modules that have the same dependencies as the core of the application. For websocket you need to install libunistring and openssl (libssl) devel packages.
Steps to load new module to Kamailio server. (Try if above answer is not working for you)
Check the modules is exist in the default module directly /usr/local/lib64/kamailio/modules.
If found, add loadmodule "module_name.so" in load module section in kamailio.cfg file.
If the module is not found in default module directory, you can check for the source code of that module in the default module source code directory /usr/local/src/kamailio-4.4/kamailio/modules.
If source code found, enter to the module directory. Then create modules' shared object file(.so) by following commands.
./configure
make
make test
make install
Then you will get a shared object file(.so). Copy that file into the default module directory. and load this module from the kamailio.cfg file as mentioned in step 1.
If module source code does not exist in the default source code directory, You need to download the source code from the web. And follow step 3 and 4.