I'm following the socially app tutorial : https://www.angular-meteor.com/tutorials/socially/angular2/3-way-data-binding
but i'm having an error at step 3 : Cannot find module ../../both/collections/parties.collection. Note that typings and typings-core are both installed and i can see them under the node_modules.
So what is causing the error ?
here's my structure :
parties.collection.ts is under myApp/both/collections/
My main component file calling the parties.collection.ts is under myApp/client/imports/app:
import { Parties } from '../../both/collections/parties.collection';
Add another ../ to the path, the tutorial has it demonstrated incorrectly.
Related
I get the following error when running next build:
HookWebpackError: Expected a pseudo-class or pseudo-element.
at makeWebpackError (/Users/eliot/Developer/eliothertenstein.com/node_modules/next/dist/compiled/webpack/bundle5.js:28:308185)
at /Users/eliot/Developer/eliothertenstein.com/node_modules/next/dist/compiled/webpack/bundle5.js:28:105236
at eval (eval at create (/Users/eliot/Developer/eliothertenstein.com/node_modules/next/dist/compiled/webpack/bundle5.js:13:28771), <anonymous>:34:1)
-- inner error --
Error: Expected a pseudo-class or pseudo-element.
at /Users/eliot/Developer/eliothertenstein.com/static/css/66780ddc5f37cb3b.css:906:3
at Root._error (/Users/eliot/Developer/eliothertenstein.com/node_modules/next/dist/compiled/cssnano-simple/index.js:190:78465)
at Root.error (/Users/eliot/Developer/eliothertenstein.com/node_modules/next/dist/compiled/cssnano-simple/index.js:190:124360)
at Parser.error (/Users/eliot/Developer/eliothertenstein.com/node_modules/next/dist/compiled/cssnano-simple/index.js:190:86811)
at Parser.expected (/Users/eliot/Developer/eliothertenstein.com/node_modules/next/dist/compiled/cssnano-simple/index.js:190:93145)
at Parser.pseudo (/Users/eliot/Developer/eliothertenstein.com/node_modules/next/dist/compiled/cssnano-simple/index.js:190:89313)
at Parser.parse (/Users/eliot/Developer/eliothertenstein.com/node_modules/next/dist/compiled/cssnano-simple/index.js:190:92668)
at Parser.loop (/Users/eliot/Developer/eliothertenstein.com/node_modules/next/dist/compiled/cssnano-simple/index.js:190:92233)
at new Parser (/Users/eliot/Developer/eliothertenstein.com/node_modules/next/dist/compiled/cssnano-simple/index.js:190:78322)
at Processor._root (/Users/eliot/Developer/eliothertenstein.com/node_modules/next/dist/compiled/cssnano-simple/index.js:190:95242)
at Processor._runSync (/Users/eliot/Developer/eliothertenstein.com/node_modules/next/dist/compiled/cssnano-simple/index.js:190:95749)
caused by plugins in Compilation.hooks.processAssets
(See the full error at https://pastebin.com/JLQ2aR2f)
I've been trying to debug this issue for ~3hrs, and it's driving me crazy. I would appreciate any help on how I could better debug the next build command? I tried using the --debug flag, but it didn't seem to do anything.
So far I know this is an issue with tailwindcss (I assume postcss), as when I remove that section of my global.scss the program works again (or actually after I comment out the full file EXCEPT for tailwind it still breaks, commenting out tailwind leads to other issues).
Oh, some other debugging I've tried:
Searching through my entire project w/ regex to find any invliad tailwind classes (using (["'])(.*\b\w+: )(.*)(\1) to locate classes like md: text-red-600 but not md:text-red-600)
reinstalled all node_modules
commenting out all CSS files (which stops the issue!)
used both yarn classic and node to run the command (and npx) as opposed to yarn v3 which is what I currently use for development
Any help is appreciated!
It turns out the answer was an error in tailwind.config.js. One of my keyframes looked like this:
expand: {
...
'80%:': {
opacity: 0.5,
},
...
},
Notice the double colon after 80%.
I would encourage everyone with this issue to check classNames, .css files, and also tailwind.config.js for any extra colons.
We have an Angular 11 project that use Angular Material and some scss files. I try to update it to Angular 11.
I executed the first command for Angular and Angular CLI without problem / error and our build works well :
npx #angular/cli#12 update #angular/core#12 #angular/cli#12
We have a problem after the command line that update Angular Material 12 :
npx #angular/cli#12 update #angular/material#12
It updates the package.json with the new 12 versions and modify our scss files ( with #use for instance and othe things , I don't know exactly the process update...)
We use scss-bundle ( version 2.4.0 ) to bundle several scss files in one with this command ( I hide my company name with XXX ;-) ):
scss-bundle -p . -e ./projects/#XXX/ang-ui/src/assets/XXX-theme.raw.scss -d ./projects/#XXX/ang-ui/src/assets/XXX-theme.scss
and the following error is thrown :
[Error] There is an error in your styles:
Invalid CSS after "...typography: mat": expected expression (e.g. 1px, bold), was ".define-typography-" on line (386, 24)
I don't know where is the file with line 386, I did not find it but after isolation th problems seems to come from this content and I really don't know what is the problem :
#use '~#angular/material' as mat;
#import '~#angular/material/theming';
$custom-typography: mat.define-typography-config($font-family: 'Arial,Helvetica,sans-serif',
$headline: mat.define-typography-level(32px, 48px, 700),
$body-1: mat.define-typography-level($text-size, 24px, 500));
...
Any idea ?
I'm trying to import the stylesheet like this #import"../../../../styles/forms.scss";
But I get this error:
ERROR in Module build failed (from ./node_modules/sass-loader/dist/cjs.js):`
SassError: Can't find stylesheet to import.`
1 │ #import"../../../styles/variables.scss";
(it goes back three times instead of four like in my path)
Then when I go back once more (just to test) "../../../../../styles/forms.scss", VS Code goes back 5 times. I know the path I'm typing is right. I am using Angular if it matters.
Apparently I imported variables.scss within my forms.scss file and when I called forms.scss one level deeper, it couldn't find variables.scss with the path I specified in forms.scss.
Now I removed variables.scss from forms.scss and added them separately to each file and it works.
I'm beginner to robot framework. I wanted to use my own library,do import and write test case.unfortunately I'm facing an error "Import Library contains no keywords" .I have gone through some of the posts realted to this in stack over flow ,but still i'm not able to figure out the issue in robot framework. I might be doing something silly.
Here is my code in python
class ExampleLibrary(object):
def __init__(self):
print "Hello"
def hello(self):
print "The given name"
here is the error [ WARN ] Imported library RobotFramework\TestSuite\Testclass.py' contains no keywords.
I have placed the .py file in the same directory as the test case.
Robotframework script
*** Settings ***
Library Testclass.py
*** Test Cases ***
LibraryTest
hello
Please Help
Thanks in advance
Class name of your library must be same as filename. Please have a look at this:
http://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#creating-test-library-class-or-module
class Testclass(object):
def __init__(self):
print "Hello"
def hello(self):
print "The given name"
You should follow Pekka's answer or change your import as below:
*** Settings ***
Library ExampleLibrary.TestClass
From Documentation:
Python classes are always inside a module. If the name of a class implementing a library is the same as the name of the module, Robot Framework allows dropping the class name when importing the library. For example, class MyLib in MyLib.py file can be used as a library with just name MyLib. This also works with submodules so that if, for example, parent.MyLib module has class MyLib, importing it using just parent.MyLib works. If the module name and class name are different, libraries must be taken into use using both module and class names, such as mymodule.MyLibrary or parent.submodule.MyLib.
I am having trouble getting a Flex application (with as3httpclient) to work.
I compiled it (compc -load-config=build-swc.xml), put the as3httpclientlib-1_0_6.swc in my libs dir, and ran
mxmlc -compiler.include-libraries lib/as3crypto-1_3_patched.swc
lib/as3httpclientlib-1_0_6.swc lib/corelib.swc -- App.mxml
In my actionscript I
import org.httpclient.HttpClient;
but still I receive the error
Error: Type was not found or was not a compile-time constant: HttpStatusEvent
client.listener.onStatus = function(event:HttpStatusEvent):void {
...
. Any ideas?
btw / before compiling "compc -load-config=build-swc.xml" I hade to
change
<path-element>${flexlib}/libs/player/9/playerglobal.swc</path-element>
to
<path-element>${flexlib}/libs/player/10.0/playerglobal.swc</path-element>
in order for it to compile because my flex version doesn't have a playerglobal.swc for Flash 9. 8o
Unless this is a custom defined class, there is no such thing as HttpStatusEvent, you need to import flash.events.HTTPStatusEvent and refer to it as such.