Cannot find module './user'. in app.component.ts - angular6

Getting the error as Cannot find module './user' in CLI, attached the screenshot below
enter image description here
As I am new to angular, please suggest how to resolve the error.
Thanks in advance.

You don't show your folder structure, but the import { User } statement is looking for a file called user.ts in the same folder as app.component.ts (ie in src/app). Two things could be wrong:
The file is called something else (eg user.model.ts)
The file is in another directory
Also make sure you export User (export class User {...) in that file - but that isn't the error here as missing an export has a different error message.

Related

Failed to import file excel in Odoo 13. How to?

I'd tried to import file excel in module Attendance of Odoo 13.
But I received the error:
Import preview failed due to: year 0 is out of range.
For CSV files, you may need to select the correct separator.
Please help!
Thank you!
Actually you are doing nothing wrong fault is in the file. Just follow that link you will come to know about how to upload file in Odoo. LINK
And import button is removed from odoo13 there is import button in odoo12 in list view.

TypeScript: File 'XXX' is not a module

I want to import a module declared in an external file into an other TS file. But VSCode says that the file 'XXX' is not a module:
The illustrated error
I tried this possible fix but it doesn't work. Any idea?
In ectm-apidatafmsproperties.ts, I changed declare module IApiDataFMsProperties by export module IApiDataFMsProperties and now it's working.
But I'm not sure if it's the right solution... Can someone tell me something about this possible fix?

Move a file that failed to import to a different folder in SSIS?

I found this link that describes how to move a file after it has been imported using SSIS:
How do I move files to an archive folder after the files have been processed?
I would like to set up some error handling such that a file that fails to 100% successfully import gets moved into a different folder for manual review.
Can anyone help with this?
Follow the same steps as in the question/answer you referenced, but change the destination if the import wasn't 100% successful.

Using Django on Runnable. cant render a simple html

I'm trying to use django and render a simple html on Runnable. I guess I'm missing something obvious but I get the error "Template does not exist" all the time.
This is the code: runnable
Thanks in advance for your help.
You need to set TEMPLATE_DIRS var in Django Settings (Settings.py) like the code comment says, to let Django get all the templates successfully.
Put os.path.join(os.path.dirname(__file__),"templates") in the variable and import os.path in python. Make a templates folder inside your app folder, and move all the .html files there.

AS3 package does not reflect location

I have an fla class referencing 'com.poole.blackjack.game', and a folder path starting at the fla root of 'com\poole\blackjack\game'.
When I compile, I get:
'C:\Users\Stephen\Desktop\Blackjack\com\poole\blackjack\Game\Player.as, Line 1 5001: The name of package 'com.poole.blackjack.game' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. C:\Users\Stephen\Desktop\Blackjack\com\poole\blackjack\Game\Player.as'
I tried changing the reference and folder name to 'Game', but get:
'C:\Users\Stephen\Desktop\Blackjack\com\poole\blackjack\game\Player.as, Line 1 5001: The name of package 'com.poole.blackjack.Game' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. C:\Users\Stephen\Desktop\Blackjack\com\poole\blackjack\game\Player.as'
It's like flash is misinterpreting the filepath, though it has worked up until now. Very annoying!
It seems like your package is using 'game' - lowercase g
And you path in the error message is 'Game' - uppercase G
I'd verify that your folder structure case matches the package case.
your error :
When I compile, I get: 'C:\Users\Stephen\Desktop\Blackjack\com\poole\blackjack\Game\Player.as
your package :
'com.poole.blackjack.game'
Much later than the post, but we encountered a similar issue. It seems there is a bug with the buildsystem / IDE that if you have a file and a directory with the same name, things might get mixed up.
In our case, in the same directory we had a class called Util and a directory called util, and it didn't compile with the same error.
Our fix was changing the Util class to a different name.