我正在制作一个名为headerComponent的组件并导入app.component.ts中,但获取website / src / app / header / app.headerComponent“'没有导出的成员'headerComponent'错误,我的app.headerComponent.ts代码如下
import { Component } from '@angular/core';
@Component({
selector: 'header',
templateUrl: './app/header/header.html'
})
export class headerComponent {}
Run Code Online (Sandbox Code Playgroud)
和app.component.ts代码如下
import { Component } from '@angular/core';
import { headerComponent } from './header/app.headerComponent';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
}
Run Code Online (Sandbox Code Playgroud) 我想要实现的是让我的猫头鹰旋转木马无限循环。在最后一个图像滑块从右到左恢复到第一个图像后,但我希望我的图像不要恢复,这意味着在最后一个图像之后,第一个图像将从左到右出现。
这是我的代码
$(document).ready(function() {
$('.five').owlCarousel({
loop:true,
margin:10,
autoPlay:true,
nav:true,
rewindNav:false,
responsive:{
0:{
items:1
},
600:{
items:3
},
1000:{
items:4
}
}
})
});
Run Code Online (Sandbox Code Playgroud) 我正在为我的学习项目使用包裹打包器并尝试为其创建构建。我也在使用 scss 文件。在bundle.scss我已经导入了我所有的 scss 文件。并导入bundle.scss到App.js.
所以在运行时parcel build index.html,我收到以下错误。
/src/style/bundle.scss:undefined:undefined: plugin is not a function
at LazyResult.run (/usr/local/lib/node_modules/parcel-bundler/node_modules/postcss/lib/lazy-result.js:288:14)
at LazyResult.asyncTick (/usr/local/lib/node_modules/parcel-bundler/node_modules/postcss/lib/lazy-result.js:212:26)
at /usr/local/lib/node_modules/parcel-bundler/node_modules/postcss/lib/lazy-result.js:254:14
at new Promise (<anonymous>)
at LazyResult.async (/usr/local/lib/node_modules/parcel-bundler/node_modules/postcss/lib/lazy-result.js:250:23)
at LazyResult.then (/usr/local/lib/node_modules/parcel-bundler/node_modules/postcss/lib/lazy-result.js:131:17)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! xxxxx complete: `parcel build index.html`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the xxxxx complete script.
npm ERR! This is probably not a problem with npm. …Run Code Online (Sandbox Code Playgroud) angular ×1
components ×1
jquery ×1
owl-carousel ×1
parceljs ×1
postcss ×1
reactjs ×1
sass ×1
typescript ×1