Comments (6)
I'm also having this problem
from docz.
Are you using some babel config on your project?
from docz.
Hey!
Yeah, I'm using a babel config in my project.
When I delete the .babelrc file, I'm getting the following error:
TypeError: Cannot read property 'name' of undefined
at new Entry (/Users/xx/Projects/xxx/node_modules/docz-core/dist/index.js:1:5189)
This is my .babelrc - if you need it for debugging:
{
"presets": ["env", "stage-0", "react"],
"plugins": [
["transform-react-jsx", { pragma: "h"}],
["transform-class-properties", { spec: true}],
["emotion"]
]
}
from docz.
Babel 6 support now is possible by using docz-plugin-babel6 release in v0.2.6
// doczrc.js
import { babel } from 'docz-plugin-babel6'
export default {
plugins: [babel()]
}
from docz.
I have the same problem for angular 6 . any solution ?
from docz.
import {AfterViewInit, Component, ElementRef} from '@angular/core';
import SwaggerUI from 'swagger-ui';
import 'swagger-ui/dist/swagger-ui.css';
//import { SwaggerUIBundle, SwaggerUIStandalonePreset } from "swagger-ui-dist";
@component({
selector: 'app-swagger',
templateUrl: './swagger.component.html',
styles: ['./swagger.component.scss']
})
export class swaggerComponent implements AfterViewInit {
constructor(private el: ElementRef) {
}
ngAfterViewInit() {
const ui = SwaggerUI({
url: '../../swagger.json',
domNode: this.el.nativeElement.querySelector('.swagger-container'),
presets: [
SwaggerUI.presets.apis
]
});
}
}
This is my code : and this is the error :
swaggerComponent_Host.ngfactory.js? [sm]:1 ERROR TypeError: Cannot read property 'presets' of undefined
at swaggerComponent.push../src/app/swagger/swagger.component.ts.swaggerComponent.ngAfterViewInit
from docz.
Related Issues (20)
- node_modules\.bin\gatsby HOT 3
- gh repo clone github/docs HOT 1
- Port not used from custom gatsby-config.js file
- Can't resolve '@emotion/core' HOT 9
- Error on first install. nError handler for invocation 'building-schema', error was 'TypeError: (0 , _buildASTSchema.getDescription) HOT 2
- Test out possibly breaking changes on security updates made from dependabot pull-requests HOT 3
- pnpm bare installs broken HOT 2
- What font is used in Docz image? HOT 3
- Error in setting up development environment HOT 4
- Release notes for 2.4.0 are missing HOT 1
- Multiple errors after installing docz HOT 11
- Error while initializing babel in docz HOT 3
- Can't resolve '@babel/runtime/helpers/esm/regeneratorRuntime'
- Error: Cannot find module 'typescript' docz HOT 2
- Add a visible notice on the documentation on why docz will not work
- Can we say that the project is Dead now? What are the alternatives? HOT 1
- how to use in react 18 HOT 4
- Error docz build
- When I try to run the project in the development environment, I get the following error: HOT 1
- An error occurred while accessing the file after local packaging.
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 docz.