Comments (2)
This is the config passed to runTask
at stencil-runtime.ts:247
Config
{
globalStyle: '{...}/playground-stencil/apps/my-app/src/global/app.scss',
globalScript: '{...}/playground-stencil/apps/my-app/src/global/app.ts',
taskQueue: 'async',
outputTargets: [
{
type: 'www',
serviceWorker: null,
baseUrl: 'https://.local/',
dir: 'C:\\Users\\u150367\\Projekte\\playground-stencil\\dist\\apps\\my-app\\www',
appDir: 'C:\\Users\\u150367\\Projekte\\playground-stencil\\dist\\apps\\my-app\\www',
buildDir: 'C:\\Users\\u150367\\Projekte\\playground-stencil\\dist\\apps\\my-app\\www\\build',
indexHtml: 'C:\\Users\\u150367\\Projekte\\playground-stencil\\dist\\apps\\my-app\\www\\index.html',
empty: true,
polyfills: true
},
{
type: 'dist-lazy',
dir: 'C:\\Users\\u150367\\Projekte\\playground-stencil\\dist\\apps\\my-app\\www\\build',
esmDir: 'C:\\Users\\u150367\\Projekte\\playground-stencil\\dist\\apps\\my-app\\www\\build',
systemDir: 'C:\\Users\\u150367\\Projekte\\playground-stencil\\dist\\apps\\my-app\\www\\build',
systemLoaderFile: 'C:\\Users\\u150367\\Projekte\\playground-stencil\\dist\\apps\\my-app\\www\\build\\app.js',
polyfills: true,
isBrowserBuild: true
},
{
type: 'copy',
dir: 'C:\\Users\\u150367\\Projekte\\playground-stencil\\dist\\apps\\my-app\\www\\build',
copyAssets: 'dist'
},
{
type: 'copy',
dir: 'C:\\Users\\u150367\\Projekte\\playground-stencil\\dist\\apps\\my-app\\www',
copy: [Array]
},
{
type: 'dist-global-styles',
file: 'C:\\Users\\u150367\\Projekte\\playground-stencil\\dist\\apps\\my-app\\www\\build\\app.css'
}
],
plugins: [
{
name: 'sass',
pluginType: 'css',
transform: [Function: transform]
}
],
configPath: '{...}/playground-stencil/apps/my-app/stencil.config.ts',
flags: {
task: 'build',
args: [ '--serve', '--watch' ],
knownArgs: [ '--serve', '--watch' ],
unknownArgs: [],
build: null,
cache: null,
checkVersion: null,
ci: null,
compare: null,
debug: null,
dev: null,
devtools: null,
docs: null,
e2e: null,
es5: null,
esm: null,
headless: null,
help: null,
log: null,
open: null,
prerender: null,
prerenderExternal: null,
prod: null,
profile: null,
serviceWorker: null,
screenshot: null,
serve: true,
skipNodeCheck: null,
spec: null,
stats: null,
updateScreenshot: null,
verbose: null,
version: null,
watch: true,
address: null,
config: null,
docsJson: null,
emulate: null,
logLevel: null,
root: null,
screenshotConnector: null,
maxWorkers: null,
port: null
},
rootDir: 'C:\\Users\\u150367\\Projekte\\playground-stencil\\dist\\apps\\my-app',
sys: {
name: 'node',
version: '12.16.2',
access: [Function: access],
accessSync: [Function: accessSync],
addDestory: [Function: addDestory],
removeDestory: [Function: removeDestory],
checkVersion: [AsyncFunction: checkVersion],
copyFile: [Function: copyFile],
createWorkerController: [Function: createWorkerController],
destroy: [AsyncFunction: destroy],
dynamicImport: [Function: dynamicImport],
encodeToBase64: [Function: encodeToBase64],
ensureDependencies: [AsyncFunction: ensureDependencies],
ensureResources: [AsyncFunction: ensureResources],
exit: [Function: e],
getCurrentDirectory: [Function: getCurrentDirectory],
getCompilerExecutingPath: [Function: getCompilerExecutingPath],
getDevServerExecutingPath: [Function: getDevServerExecutingPath],
getEnvironmentVar: [Function: getEnvironmentVar],
getLocalModulePath: [Function: getLocalModulePath],
getRemoteModuleUrl: [Function: getRemoteModuleUrl],
glob: [Function: asyncGlob],
hardwareConcurrency: 8,
isSymbolicLink: [Function: isSymbolicLink],
mkdir: [Function: mkdir],
mkdirSync: [Function: mkdirSync],
nextTick: [Function: nextTick],
normalizePath: [Function: normalizePath],
onProcessInterrupt: [Function: onProcessInterrupt],
platformPath: {
resolve: [Function: resolve],
normalize: [Function: normalize],
isAbsolute: [Function: isAbsolute],
join: [Function: join],
relative: [Function: relative],
toNamespacedPath: [Function: toNamespacedPath],
dirname: [Function: dirname],
basename: [Function: basename],
extname: [Function: extname],
format: [Function: bound _format],
parse: [Function: parse],
sep: '\\',
delimiter: ';',
win32: [Circular],
posix: [Object],
_makeLong: [Function: toNamespacedPath]
},
readdir: [Function: readdir],
readdirSync: [Function: readdirSync],
readFile: [Function: readFile],
readFileSync: [Function: readFileSync],
realpath: [Function: realpath],
realpathSync: [Function: realpathSync],
rename: [Function: rename],
resolvePath: [Function: resolvePath],
rmdir: [Function: rmdir],
rmdirSync: [Function: rmdirSync],
stat: [Function: stat],
statSync: [Function: statSync],
tmpdir: [Function: tmpdir],
unlink: [Function: unlink],
unlinkSync: [Function: unlinkSync],
writeFile: [Function: writeFile],
writeFileSync: [Function: writeFileSync],
generateContentHash: [Function: generateContentHash],
copy: [AsyncFunction: nodeCopyTasks],
details: {
cpuModel: 'Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz',
freemem: [Function: freemem],
platform: 'windows',
release: '10.0.18363',
totalmem: 16907509760
},
lazyRequire: NodeLazyRequire {
nodeResolveModule: [NodeResolveModule],
lazyDependencies: [Object],
moduleData: Map {}
},
watchTimeout: 80,
events: {
emit: [Function: emit],
on: [Function: on],
unsubscribeAll: [Function: unsubscribeAll]
},
watchDirectory: [Function],
watchFile: [Function]
},
devMode: false,
extras: {
appendChildSlotFix: false,
cloneNodeFix: false,
cssVarsShim: true,
dynamicImportShim: true,
lifecycleDOMEvents: false,
safari10: true,
scriptDataOpts: true,
shadowDomShim: true,
slotChildNodesFix: false,
initializeNextTick: true,
tagNameTransform: false
},
minifyCss: true,
minifyJs: true,
sourceMap: false,
watch: true,
buildEs5: true,
buildDocs: true,
buildDist: true,
profile: false,
writeLog: false,
buildAppCore: true,
autoprefixCss: true,
validateTypes: true,
allowInlineScripts: true,
hashFileNames: true,
hashedFileNameLength: 8,
namespace: 'App',
fsNamespace: 'app',
srcDir: '{...}/playground-stencil/apps/my-app/src',
cacheDir: '{...}/playground-stencil/apps/my-app/.stencil',
srcIndexHtml: '{...}/playground-stencil/apps/my-app/src/index.html',
packageJsonFilePath: 'C:\\Users\\u150367\\Projekte\\playground-stencil\\apps\\my-app\\package.json',
rollupPlugins: { before: [] },
rollupConfig: { inputOptions: {}, outputOptions: {} },
devServer: {
address: '0.0.0.0',
port: 3333,
reloadStrategy: 'hmr',
gzip: true,
openBrowser: true,
websocket: true,
protocol: 'http',
historyApiFallback: { index: 'index.html', disableDotRule: false },
logRequests: false,
root: 'C:\\Users\\u150367\\Projekte\\playground-stencil\\apps\\my-app\\www',
basePath: '/',
excludeHmr: [],
experimentalDevModules: false
},
testing: {},
hydratedFlag: {
name: 'hydrated',
selector: 'class',
property: 'visibility',
initialValue: 'hidden',
hydratedValue: 'inherit'
},
bundles: [],
copy: [],
maxConcurrentWorkers: 8,
devInspector: false,
enableCache: true,
logLevel: 'info',
logger: {
enableColors: [Function: enableColors],
emoji: [Function: emoji],
getLevel: [Function: getLevel],
setLevel: [Function: setLevel],
debug: [Function: debug],
info: [Function: info],
warn: [Function: warn],
error: [Function: error],
createTimeSpan: [Function: createTimeSpan],
printDiagnostics: [Function: printDiagnostics],
red: [Function: c],
green: [Function: green],
yellow: [Function: u],
blue: [Function: blue],
magenta: [Function: magenta],
cyan: [Function: h],
gray: [Function: gray],
bold: [Function: d],
dim: [Function: p],
bgRed: [Function: m],
setLogFilePath: [Function: setLogFilePath],
writeLogs: [Function: writeLogs],
createLineUpdater: [AsyncFunction]
},
tsconfig: '{...}/playground-stencil/apps/my-app/tsconfig.json',
tsCompilerOptions: null
}
config.rootDir
points to dist
, but config.devServer.root
refers to the apps
path. When I hack the dist
path into that property, it fails with the error from #50
Job Output failed to validate. Errors:
Data path ".error" should be string.
So it seems that gets me a step further :-)
EDIT: And as the extensions does not support Nx 10 yet, which I just noticed, that seems to be fine 😁
from nx-extensions.
Curiously, with the fixed @nxext/stencil
from the PR it even works with Nx 10 🤔
from nx-extensions.
Related Issues (20)
- Tailwind support for Vue
- Vue: Cannot create new workspace using preset due to missing @nx/js HOT 1
- Vue: Generated app lacks a `test` task for unit tests HOT 1
- Svelte: Cypress fails because of missing configuration in vite
- Svelte: Project name mismatch
- Svelte: Wrong path when using importPath flag
- Svelte: NX throws error when using the tsConfiguration flag with storybook
- Svelte: storybook generator fail if NOT using eslintrc JSON file HOT 1
- Ionic React: dependenies error with nx v17.0.3
- Sveltekit: Directory option doesn't work
- Stencil : npm install error - No matching version found for @storybook/manager-webpack5
- Stencil: conflicting peer dependencies on `npm i @nxext/stencil` HOT 2
- Stencil - adding Angular outputtarget throws Cannot read properties of undefined (reading 'kind') HOT 3
- Sveltekit: New app errors HOT 4
- Angular: Failed to fetch dynamically imported module .angular/cache/17.0.8/vite/deps/ion-app_8.entry.js?import HOT 7
- Solid: nx integrated monorepo vite config
- Stencil: Creating a buildable library throws an exception HOT 7
- Stencil: Adding output target type Angular leads to an exception HOT 2
- React: Capacitor live reload not working
- Stencil: missing support for Nx latest version (v18) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nx-extensions.