小编Sai*_*eri的帖子

npm运行html-webpack-plugin的构建错误

嘿,所以我是webpack的新手,我正在尝试将其用于使用Cesium js api的项目。我正在T上在线学习他们的教程,但是由于某些原因,当我运行命令“ npm run build”时,出现以下错误,但未正确执行。

Peris-MacBook-Pro:App peri$ npm run build

> ngafid@1.0.0 build /Users/peri/Desktop/App
> webpack --config webpack.config.js

(node:23326) DeprecationWarning: Tapable.plugin is deprecated. Use new API on `.hooks` instead
(node:23326) DeprecationWarning: Tapable.apply is deprecated. Call apply on the plugin directly instead
/Users/peri/Desktop/App/node_modules/html-webpack-plugin/lib/compiler.js:81
        var outputName = compilation.mainTemplate.applyPluginsWaterfall('asset-path', outputOptions.filename, {
                                                  ^

TypeError: compilation.mainTemplate.applyPluginsWaterfall is not a function
    at /Users/peri/Desktop/App/node_modules/html-webpack-plugin/lib/compiler.js:81:51
    at compile (/Users/peri/Desktop/App/node_modules/webpack/lib/Compiler.js:222:11)
    at hooks.afterCompile.callAsync.err (/Users/peri/Desktop/App/node_modules/webpack/lib/Compiler.js:470:14)
    at AsyncSeriesHook.eval [as callAsync] (eval at create (/Users/peri/Desktop/App/node_modules/tapable/lib/HookCodeFactory.js:24:12), <anonymous>:6:1)
    at AsyncSeriesHook.lazyCompileHook [as _callAsync] (/Users/peri/Desktop/App/node_modules/tapable/lib/Hook.js:35:21)
    at compilation.seal.err …
Run Code Online (Sandbox Code Playgroud)

javascript node.js npm cesium webpack

3
推荐指数
3
解决办法
3864
查看次数

SQL 迭代循环,查看员工是否在所有项目上工作

我应该形成的查询必须完成以下任务:

Retrieve the names of all employees who work on every project.
Run Code Online (Sandbox Code Playgroud)

我目前有三张桌子。Employee、works_on 和 project 表。完成此查询的目标是从项目表中获取每个项目 ID,将其与works_on 表中的项目 ID 进行比较。当匹配时,它将获取 SSN 并从员工表中获取姓名。我形成的查询是这样的:

SELECT e.Fname, e.Minit, e.Lname, p.Pname 
FROM EMPLOYEE e, PROJECT p, WORKS_ON w 
WHERE p.Pnumber=w.Pno AND w.Essn=e.Ssn
Run Code Online (Sandbox Code Playgroud)

但这会输出参与每个项目的所有员工,而不是参与每个项目的所有员工。有什么方法可以遍历查询的结果列表SELECT Pnumber FROM PROJECT吗?

我真的希望我清楚地表达了这个问题,以便您理解。

mysql sql

2
推荐指数
1
解决办法
622
查看次数

标签 统计

cesium ×1

javascript ×1

mysql ×1

node.js ×1

npm ×1

sql ×1

webpack ×1