I am a newbie with Meteor.
I used Iron-Router and Blaze for my project (without React or React-Router) and I have some trouble to load dependency modules (now all files are loaded in the first time running of application).
Can anybody help me with the solution to this problem?
Thank you!
it may help to post the folder structure of your project.
Also run a meteor list and post the results. that will help us determine if some dependencies are conflicting.
Also, in meteor all of the detected *.js files will be included in the project. to exclude them, place in a folder outside of the directory where the .meteor folder is located.
Related
I've recently upgraded my Unity project to 2021.2.3f1 on the new M1 16inch macbooks. Upon importing Firebase's SDK, I get the following error on async Tasks types:
It seems there's an ambiguity happening since it works fine without the SDK. Someone in the Firebase discord suggested that:
it's most likely related to the plugins folder dll files,
there should be a some dlls and a folder called net4xx,
if you remove (zip so you can restore it) the rogue dll files, it may fix it..
so only the net4x folder remains
Unfortunately the only net-something folder i've got in my project is in Assets>Parse>Plugins> and is called dotNet45, but it's the only one and there isn't any other net4-something folder anywhere in the project. Removing that dotNet45 folder creates lots of errors.
Someone knows what are the steps to fix this pls?
Thanks !
Actually I was almost there. They're not folders, its these two files that should be deleted:
Then it should be fixed !
I am working on a project in my office, for this i have downloaded meteor project code from github for customization, i don't know how it's run before? i have successfully developed demo app from meteor tutorial, but when i am trying that unzipped github code and using same command in terminal as for demo app, its giving me an error "project not in meteor directory". But when i am using intellij idea for importing that, so .meteor directory is automatically getting created there.
What should i do for this. Please help i am in trouble.
It's because your command line is not projected in your meteor project directory.
Probably this would solve your problem
Step 1. Create a meteor app with "meteor create appName"
Step 2. Delete all the files from the app you created in previous step.
Step 3. Unzip and save all the files in appName directory which is created while doing the first step.
Let me know if there is error again.
Meteor Upadated tutorials with react js are explained our blog Meteor Js For React Developers
What's the proper way to handle having multiple developers on a Meteor application? On each computer that I want to develop the app on I have to follow these steps to get it running after cloning from the repo:
Rename my-app/ to app/
Run meteor create my-app
Move all files from app/ into my-app/
Delete the auto generated my-app.*files
Re-add all packages (jquery, iron:router, etc...)
Note that I'm not including the .meteor/local directory in the repository.
I feel like I'm missing something obvious but it's not making itself apparent.
Push to the repo all files at the same level as the .meteor directory. Nothing to rename or meteor create. Yes, packages do need to be added, but the list of packages is specified in a file inside .meteor.
Just include the full .meteor/ directory in your repository. That way whenever the repo is cloned they will get the right version of meteor, a list of all the installed packages (which are downloaded at runtime) and any settings they need to run the app.
As far as I'm aware there is nothing in the .meteor/ directory that can't be shared across to different developers.
I'm working on building a package for meteor 0.9+ that exposes a library off sass mixins called 'Bourbon' and am trying to sort out the best way to provide access to '#import' a stylesheet from the package into a Meteor project.
https://github.com/wolvesio/meteor-bourbon/
Pre Meteor 0.9 this used to be done via something along the lines of:
#import "packages/wolves:bourbon/bourbon";
Since the package system changed though this no longer works. Any help as to the best way to do this moving forward would be greatly appreciated.
I've managed to accomplish what you want, it's a bit hacky but it works at last.
First, you need to add the .less files as server assets in your package :
Package.onUse(function(api){
api.addFiles([
"bourbon/style1.less",
...
"bourbon/styleN.less"
],"server",{
isAsset:true
});
});
Then run meteor to trigger the building of your application : this will copy over the server assets to the .meteor directory of your application. More precisely, your .less files will now live in ".meteor/local/build/programs/server/assets/packages/wolves:bourbon/bourbon/*".
Now you can reference these .less files in your application using this super unfriendly path.
I recommend hiding this stuff from your package users by defining an import.less directly in the package :
packages/wolves:bourbon/bourbon.import.less
#bourbon-root: ".meteor/local/build/programs/server/assets/packages/wolves:bourbon/bourbon/";
#import "#{bourbon-root}style1.less";
//
#import "#{bourbon-root}styleN.less";
Then in the package README, invite your users to simply copy bourbon.import.less in their client directory and reference it from there.
client/lib/config/style.less
#import "bourbon.import.less";
There is one drawback to this approach that I was unable to solve at the moment : the .less files are copied in the .meteor directory when your application is built (a process that happens when triggering meteor run).
However, the build process will try to compile your application .less files FIRST, before copying the server assets (in this case our package .less files) to the .meteor dir.
So the very first time you add the package to an app, it will complain that it is unable to find the package .less files, triggering a rebuild (either by killing and relaunching meteor or touching your application .less files) will fix this though.
I am using bootstrap in Meteor and found that there is a modified flat design here: http://designmodo.com/demo/flat-ui/. Among the files seems to be a modified set of Bootstrap files. Is it possible to somehow use those css and js files to override the default bootstrap files to get the Flat-UI in a meter app? Thank you!
it's quite simple:
unzip the contents of the flat-ui-master.zip from the flatui site, then follow these steps:
create these folders in your app root: /client/stylesheets
copy the contents of the .zip into /stylesheets
remove the index.html and README.md files as they might cause your app to crash, and are not needed
meteor automatically takes care of the rest.
Although manually insert files works, I'm using meteor package jss:flat-ui
meteor add jss:flat-ui
it will automatically add flat-ui and twbs:bootstrap.
Note that, it might be better to remove any bootstrap package before installing this, I've been in a project that has mizzao:bootstrap installed and the login ui not working, so I remove mizzao:bootstrap and reinstalled flat-ui to make it work.
You can use whatever css you want to, Meteor don't care.
I wouldn't add the bootstrap meteor package though, I'd just download the css files you want and place them in your project. That way you know exactly what files are used and can easily make changes.
Here's some info on how to structure your app: https://github.com/oortcloud/unofficial-meteor-faq#where-should-i-put-my-files
I created a shell script to generate a custom bootstrap Meteor package from either a precompiled distribution, or from your own clone of the Bootstrap Git repository.
You can find it here, along with usage information: https://github.com/wojas/meteor-package-bootstrap
Just unpack the ZIP file containing the files and run this command from inside the theme folder:
/path/to/meteor-package-bootstrap.sh $your_meteor_project/packages/bootstrap