question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Type error while creating new entry, when fieldName=text

See original GitHub issue
Overview of the issue

I have a type error in entry-dialog.component.ts while attempting creating a new entry using the generator.

Reproduce the error

Using the following entity :

{
    "fluentMethods": true,
    "relationships": [],
    "fields": [
        {
            "fieldName": "text",
            "fieldType": "String"
        }
    ],
    "changelogDate": "20170203151823",
    "dto": "no",
    "service": "serviceClass",
    "entityTableName": "entry",
    "pagination": "no"
}

This error occurs while compiling typescript files.

JHipster Version(s)

Using JHipster 4.0.0

JHipster configuration
{
  "generator-jhipster": {
    "jhipsterVersion": "4.0.0",
    "baseName": "tmp",
    "packageName": "com.hello.world",
    "packageFolder": "com/hello/world",
    "serverPort": "8080",
    "authenticationType": "session",
    "hibernateCache": "ehcache",
    "clusteredHttpSession": false,
    "websocket": "spring-websocket",
    "databaseType": "sql",
    "devDatabaseType": "h2Disk",
    "prodDatabaseType": "postgresql",
    "searchEngine": "elasticsearch",
    "messageBroker": false,
    "buildTool": "gradle",
    "enableSocialSignIn": false,
    "rememberMeKey": "7beacec1dae5abd279a9c0a5db54d7dd643e48c3",
    "useSass": true,
    "clientPackageManager": "yarn",
    "applicationType": "monolith",
    "clientFramework": "angular2",
    "testFrameworks": [
      "gatling",
      "cucumber"
    ],
    "jhiPrefix": "jhi",
    "enableTranslation": true,
    "nativeLanguage": "fr",
    "languages": [
      "fr",
      "en"
    ]
  }
}
Entity configuration(s) entityName.json files generated in the .jhipster directory

Entry.json

{
    "fluentMethods": true,
    "relationships": [],
    "fields": [
        {
            "fieldName": "text",
            "fieldType": "String"
        }
    ],
    "changelogDate": "20170203151823",
    "dto": "no",
    "service": "serviceClass",
    "entityTableName": "entry",
    "pagination": "no"
}
Browsers and Operating System

java version “1.8.0_121” Java™ SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot™ 64-Bit Server VM (build 25.121-b13, mixed mode)

git version 2.7.4

node: v6.9.5

npm: 3.10.10

yeoman: 1.8.5

yarn: 0.19.1

  • Checking this box is mandatory (this is just to show you read everything)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jduboiscommented, Feb 3, 2017

Sorry @mohamed2a , not your fault in fact 😃

0reactions
gmarzioucommented, Feb 4, 2017

With PR #5087 you won’t need to rename your field.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why can't I query CloudKit from Xc… | Apple Developer Forums
When I try to query CloudKit from CloudKit Dashboard, I get an error that says: There was a problem querying the “Entry” type....
Read more >
Error - <type 'exceptions.TypeError'>: expected string or buffer
It's saying that the package_dict returned by SOLR is not JSON, and it needs to be. Are you using the recommended SOLR version?...
Read more >
There is 1 data-entry item without field source error, when ...
Create a new form named New1 for the problem record type. Delete one of the tabs on the new form, so that a...
Read more >
Resolve type conversion failure in Access update query using ...
I am getting type conversion failure error when i am trying to update ... type, having numbers as value) with field "NAME" (Text...
Read more >
Rule Using Blockly Date and Time from Marketplace Failed ...
After migrating, when OpenHAB restarted there was an error in the log ... The rule in question was created using Blockly and included...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found