Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 1.1.11 to 1.1.12 error generating docs /* your preset */ #1100

Closed
rickvandermey opened this issue Jul 15, 2021 · 3 comments
Closed

[BUG] 1.1.11 to 1.1.12 error generating docs /* your preset */ #1100

rickvandermey opened this issue Jul 15, 2021 · 3 comments

Comments

@rickvandermey
Copy link

rickvandermey commented Jul 15, 2021

After updating from 1.1.11 to1.1.12 an error occured during the build process of compodoc

[14:39:08] Error during ./documentation//js/menu-wc_es5.js page generation
[14:39:08] Error: [BABEL] unknown: Preset /* your preset */ requires a filename to be set when babel is called directly,

babel.transform(code, { filename: 'file.ts', presets: [/* your preset */] });

See https://babeljs.io/docs/en/options#filename for more information.

.compodocrc

disableRoutesGraph: true
hideGenerator: true
name: RVDM Angular Starterkit
output: ./documentation
tsconfig: ./src/tsconfig.compodoc.json
unitTestCoverage: ./coverage/coverage-summary.json

scripts:

"doc": "compodoc --coverageTestThresholdFail=false",
"doc:full": "npm run test:ci && npm run test:e2e && npm run wpo:stats && npm run wpo:lighthouse && npm run doc:reports && npm run doc -- --includes compodoc-additional-doc",
"doc:reports": "npx mkdirp documentation/additional-documentation && npx ncp reports documentation/additional-documentation",

a reproduction can be found at https://github.com/rickvandermey/angular-starterkit

@vogloblinsky
Copy link
Contributor

can you test by doing

  • rm -rf node_modules
  • npm i
    run your doc command

@rickvandermey
Copy link
Author

rickvandermey commented Jul 15, 2021

Still returning the same error

if i just run compodoc i already got the error

NVM:
npm: 7.12.0
node: 14.16.1

compodoc tsconfig:

{
	"extends": "../tsconfig.json",
	"compilerOptions": {
		"outDir": "../out-tsc/app",
		"types": ["node"]
	},
	"angularCompilerOptions": {
		"enableIvy": true
	},
	"exclude": ["main.server.ts", "test.ts"]
}

base tsconfig:

{
	"compileOnSave": false,
	"compilerOptions": {
		"allowSyntheticDefaultImports": true,
		"baseUrl": "./src/",
		"declaration": false,
		"experimentalDecorators": true,
		"emitDecoratorMetadata": true,
		"lib": ["es2018", "dom"],
		"module": "es2020",
		"moduleResolution": "node",
		"noEmitOnError": true,
		"noUnusedLocals": true,
		"noUnusedParameters": true,
		"outDir": "./dist",
		"paths": {
			"@app/*": ["app/*"],
			"@assets/*": ["assets/*"],
			"assets": ["assets"],
			"@components/*": ["app/components/*"],
			"components": ["app/components"],
			"core-js/es7/reflect": [
				"../node_modules/core-js/proposals/reflect-metadata"
			],
			"core-js/es6/*": ["../node_modules/core-js/es/*"],
			"@environments/*": ["environments/*"],
			"environments": ["environments"],
			"@helpers/*": ["app/helpers/*"],
			"helpers": ["app/helpers"],
			"@interfaces/*": ["app/interfaces/*"],
			"interfaces": ["app/interfaces"],
			"@modules/*": ["app/modules/*"],
			"modules": ["app/modules"],
			"@pages/*": ["app/pages/*"],
			"pages": ["app/pages"],
			"@pipes/*": ["app/pipes/*"],
			"pipes": ["app/pipes"],
			"@routes/*": ["app/routes/*"],
			"routes": ["app/routes"],
			"@services/*": ["app/services/*"],
			"services": ["app/services"],
			"@store/*": ["app/store/*"],
			"store": ["app/store"],
			"@testing/*": ["app/testing/*"],
			"testing/*": ["app/testing/*"]
		},
		"sourceMap": true,
		"target": "es2015",
		"typeRoots": ["node_modules/@types"]
	}
}

You could checkout the repo and see for yourself

@vogloblinsky
Copy link
Contributor

I just cloned your repository.
Running ./node_modules/.bin/compodoc works fine and use 1.1.11 version.
You can uograde to 1.1.14, now Compodoc will not fail with this issue. I will investigate because using the same command ./node_modules/.bin/compodoc with 1.1.14 show the Babel error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants