發表文章

目前顯示的是 1月 25, 2019的文章

Typescript not finding 3rd party modules from 'node_modules' folder

圖片
1 0 I am working on a plain Typescript app and have successfully tested it with importing modules created by myself which are part of the project. Now I am trying to include a 3rd party module from 'node_modules'folder but the compiler is not able to find that module. import * as pnp from '@pnp/pnpjs'; Below is my setting for tsconfig: "compileOnSave": true, "compilerOptions": "types": , "sourceMap": true, "module": "amd", "target": "es5", "noEmitOnError": true, "outDir": "./dist" , "exclude": [ "node_modules", "obj", "bin" ] Below is my package.json: "version": "1.0.0", "name": "OSD.SharePointHostedApp", "private": true, "devDependencies": "@types/chai": "^4.1.7", "@types/sharepoint": "^2013.1.6

how to change into rule (Prolog)

圖片
0 I'm currently learning about Prolog and doesn't quite understand how to turn this statement into a rule. this one particular question confuse me a lot. please help! this is the database: weather(tuesday,fair). weather(wednesday,overcast). weather(thursday,overcast). weather(friday,rainy). weather(saturday,overcast). color_of_the_sky(blue,Day) :- weather(Day,fair). color_of_the_sky(grey,Day) :- weather(Day,overcast). status(active,sunday). status(active,tuesday). status(active,thursday). happy(Day) :- weather(Day,fair), status(active,Day). the statement is: birds will have mixed feeling when it is raining and birds are active. prolog share | improve this question asked Nov 13 '18 at 18:02 yuu yyuako yuu yyuako 1 1 It's a poorly constructed homework assignment. Birds are not defined anywhere and mixed feeling is not mentioned anywhere. No wonder you are confused. The instructor ought to use facts and rules with desc