first of all, I want to say that im a newbie in meteor and I been looking for a solution for 3 hours but I dont find it. I hope my question helps other newbies like me.
Im working with an Inspinia seed proyect and Im testing and learning how to use simple-schema, collection2 and autoform. I followed all the installation tutorial from that packages and it seems there is all correct. When I tried to create a simpleSchema and run meteor, the console says: "SyntaxError: import declarations may only appear at top level of a module"
I put "import SimpleSchema from 'simpl-schema';
SimpleSchema.extendOptions(['autoform']);"
in the same .js where are my schemas.
My question is where I have to put this 2 lines? What is the top of the module here? If I dont put this the error says "ReferenceError: SimpleSchema is not defined". I can see in node_modules/simpl-schema the package so I think is well add to the project.
There is something im not understanding so I hope someone can help me.
Im using METEOR#1.4.2.3 this might be the problem?
Sorry if this question is answered in other post, I try to look all the posts but I dont find it.
PD: English is not my language so excuse me if I write wrong.
Edit:
Here is where I put the import because I dont know where is this top of module. Where did I have to put it?
schema.js is inside client
Thanks for the help
Related
Good day to all,
I´ll explain the "problem":
Imagine this case:
You open VisualStudio and then from the IDE I choose a template and then create it, when its created then you can without problem add that solution to the source control, there´s no problem like this:
But if you create the project template from the CLI, like this:
Then you cannot just add that solution to the source control, just simply does´nt add.
And due to this, it will display the typical error:
How I can fix this? I dont really find to much info pointing to this problem.
Thank you very much as usually.
Create a .gitignore file and add the .vs folder
Follow this similar question
so.. I am trying out Adobe Brackets as my editor right now and I really like it so far, but there is one thing I am missing and I wonder if there is an extension for that..
I mainly code php, css and javascript for wordpress themes / plugins etc. I was using sublime 3 before, where I had a plugin that, if I type a wordpress function name and use the autocomplete, automatically inserts the parameters of that function. So in sublime it looks like this http://i.imgur.com/FxxUOy8.png
In Adobe Brackets I tried every wordpress extension that I found but I cant get the same result. The hints for wordpress functions do work but when I accept a hint it wont insert the parameters of that function http://i.imgur.com/25HsuSe.png
So I wondered if anyone knows an extension that offers autocompletion like in the sublime screenshot. Or am I missing sth else to get that?
Thanks in advance!
I haven't yet installed this, but I came across it today and will be trying it out myself. It's an extension for Brackets called "Brackets WordPress Hint". It looks like the repository hasn't been contributed to in a while, but I haven't (yet) found anything newer.
https://github.com/Tusko/brackets-wp-hint
I´m getting crazy with drupal... yesterday was my first day and I´m alone in this problem... I´m following this tutorial: https://www.drupal.org/node/2025313
Problem... I did everything and I guess that by the moment everything is ok. I´m reading, and reading... the 3 step, it say this:
Place your new Twig template in the templates folder in the stark theme (in the sandbox):
for functions that came from specific module, stark/templates/comment, etc
for functions that came from theme.inc, stark/templates/theme.inc
for functions that came from form.inc, stark/templates/form.inc
I dont get anything... can some help me with this?
What is the sandbox? My Drupal´s control panel?
Functions that came from... WTF? I have a script with 1500 lines of code... (I´m not sure, but more than 1000, my html.twig...) I think this tutorial is for people with a lot experience in Drupal (I don´t have that experience) and maybe somethings like this could be easy or simple to people that works with drupal everythay...
I just need get what is the "stark theme", "the sandbox"...functions from there? ... I´m sure I dont´get something simple... =(
Thanks to everyone could help me.
I do this stuff for research, so there´s no source code.
My programm has to be able to change the language via buttons. I got the information that the QtLinguistis often used for this stuff. The problem is that I can´t find something like a workflow, what and when do I have to do something.
It would be nice if someone can give me a push in the right direction.
Thanks in advance.
Am facing a lot of problem in search & am new to development field.
Could anybody please help me...
Anybody explain meteor easy search for users collection with helper and event function with code example?
This tutorial should help.
probably this website has all the basic thing to start you up with meteor tutorial. I dont know about others but this helped. this is a good resource to take you forward.