After npm migrate, I get the following error in my code:
Module 'nativescript-filter-select' not found for element 'nativescript-filter-select:FilterSelect'.
System.err: > layout_base_1.CSSType is not a function
In my xml, I have used
xmlns:FS="nativescript-filter-select"
and
<FS:FilterSelect row="5" change="changeJud" col="0" multiple="false" close="{{ closeModal }}" items="{{ judete }}" search_param="judet" primary_key="id_judet" />
Is there a solutin for this?
So, I figured out I had to uninstall the module and reinstall it. Apparenty, only installing it (without being uninstalled first) did not do the trick.
Related
So I have images working on my dev environment, however when i try to see them on the production server I receive a 404 error, the images are located in storage/app/public folder, I have ran the following command:
php artisan storage:link
The output says it works however it is still a 404 error when navigating to /storage/imagefolder/image on the site
Technically images are accessible through the public folder, not the storage folder.
In your Code you can access them like:
<img src="{{ asset('imagefolder/image') }}" />
You can find the correct/final image url with:
dd(asset('imagefolder/image'));
First delete the old symlink
Then from the command:
php artisan storage: link
And to display files:
<img src="{{ asset('imagefolder/fileName') }}" />
or
<img src="{{ /storage/imagefolder/fileName }}" />
File permission error on the existing link to storage from the public folder, deleting the link and re running the command fixed the issue.
i am trying to show images which is stored in storage/app/public/directory and i am retreiving the image name with directory from database like 'projects/123456/jpg'. i have tried so many things but failed to show image..
i have tried this
<img id="before" src="<?php echo asset("storage/app/$data->pic_before_project"); ?>" height="100"
width="120">
and also this
<img id="before" src="{{ asset('/'.$data->pic_before_project) }}" height="100" width="120">
but those didnt work... here to mention i have already linked storage.
please help.
from this you can access folder wherever it saved
{{ URL::asset('/public/yourfolder/'.$data->pic_before_project) }}
or try this
{{ asset('yourfolder/'.$data->pic_before_project) }}
last code automatically access public folder when you are in localhost first one is using in hosting
I solved my problem. just to share, the problem might occur when you are using an existing project where public/storage file is already linked. so deleteing the storage folder and then again linking the storage with php artisan storage:link command worked for me..
When I tried to set image source with below code then it's working fine
<Image source={require('/home/xbyte/Ravi/React Native/projects/saloonApp/app/img/bg.jpg')} style={styles.image} />
But then I tried to set image source like other users using below code at that time it's not working properly
<Image source={require('./app/img/bg.jpg')} style={styles.image} />
kindly please help me to get out of this issue.
thanks in advance.
Not sure what your exact problem is
Option 1
Move your images to drawable folder which is available at my-app-mobile\android\app\src\main\res\drawable
But for setting up images source use could uri as below
<Image source={{ uri: "bg.jpg" }} style={styles.deviceIcon} />
Option 2
Use a different command line as it seems your images are not bundled
react-native bundle --platform android --dev false --entry-file index.android.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res/
Symfony gets on my nerves...
I'm desperatly trying to display an image using the following codes and commands :
{% image 'EC/myBundle/Resources/public/images/my-image.jpg' %}
<img src="{{ asset_url }}" alt="Example" />
{% endimage %}
or
<img src="{{ asset( 'images/my-image.jpg' ) }}" />
with
php bin/console assets:install
or with
php bin/console assetic:watch
or with
php bin/console assetic:dump --env=dev
I've been trying everything but it doesn't work at all.
(However, CSS and JavaScript do work (using the proper tag).)
I don't understand where the problem comes from.
Thank you for your help.
Try something like this :
img src="/bundles/app/images/logo.png"
and make sure the file exists in the web folder
I try to install Compass in my Symfony 2.3.1 project on Windows XP though not successfuly up to now.
I have Ruby, compass, sass the newest versions installed.
This is my assetic configuration in app/config/config.yml
# Assetic Configuration
assetic:
debug: %kernel.debug%
use_controller: false
#bundles: [ ]
#java: /usr/bin/java
filters:
cssrewrite: ~
sass: ~
compass: ~
Here is my app/cofnfig/parameters.xml
# Assetic
assetic.filter.compass.images_dir: %kernel.root_dir%/../web/images
assetic.filter.compass.http_path: /images
assetic.filter.compass.bin: C:/Ruby200/bin/compass
The block code including stylesheets section in app/Resources/views/base.html.twig
{% stylesheets filter="compass"
"#PortalSlubnyMainBundle/Resources/assets/css/main.sass"
"#PortalSlubnyMainBundle/Resources/assets/css/header.sass"
"#PortalSlubnyMainBundle/Resources/assets/css/footer.sass"
%}
<link rel="stylesheet" href="{{ asset_url }}" />
{% endstylesheets %}
Ok so when I try to compile this from command line as a result of this command php app/console assetic:dump I get output below:
Dumping all dev assets. Debug mode is on.
17:46:14 [file+] C:/xampp/htdocs/slub/app/../web/css/12c97a7.css
[Assetic\Exception\FilterException] An error occurred while
running: "C:\Ruby200\bin\ruby.EXE" "C:/Ruby200/bin/compass"
"compile" "C:\Documents and Settings\piotr\Ustawienia lokalne\Temp"
"--images-dir" "C:/xampp/htdocs /slub/app/../web/images" "--config"
"C:\Documents and Settings\piotr\Ustawi enia
lokalne\Temp\ass1C9.tmp" "--sass-dir" "--css-dir" "C:/Documents and
Settings/piotr/Ustawienia lokalne/Temp/ass1CA.tmp.sass"
Error Output: You must compile individual stylesheets from the
project directory.
Input: html, body {
overflow-x: hidden;
background-color: yellow;
}
assetic:dump [--watch] [--force] [--period="..."] [write_to]
Ruby is working from cmd and it is set in the PATH environment variable as well as compass. Guys any help would be fully apreciated.
EDIT:
Thanks for the answer unfortunetly it doesnt help me either.
When I changed names to bundles/portalslubnymain/css/main.sass CLI return me error sth similar to that this file is unable to find, thogh the paths to files seem to be ok
I followed instructions form the article you posted earlier I also checked this article
Looking at your code i suggest you followed this article. please notice the UPDATE notice at the end!
At first your assets should live in the Resources/public folder ...
... not in Resources/assets. fix this...
Afterwards please change ...
{% stylesheets filter="compass"
"#PortalSlubnyMainBundle/Resources/public/css/main.sass"
"#PortalSlubnyMainBundle/Resources/public/css/header.sass"
"#PortalSlubnyMainBundle/Resources/public/css/footer.sass"
... to
{% stylesheets filter="compass"
"bundles/portalslubnymain/css/main.sass"
"bundles/portalslubnymain/css/header.sass"
"bundles/portalslubnymain/css/footer.sass"
... because some assetic filters ( i.e. cssrewrite ) are known to NOT work with the #-syntax.
Afterwards symlink your assets into the web dir like this:
app/console assets:install web --symlink
Finally you should be able to run
app/console assetic:dump