You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm creating an idea transformer that transforms ideas to typescript types. When running npx idea -i ./schema.idea I get the following error.
throw new Error('Could not find node_modules');
^
Error: Could not find node_modules at Loader.modules (/Users/server/projects/blanquera/ideas/node_modules/@ossph/idea-transformer/types/Loader.js:26:19)
Expected Behavior
Should process my transformer so I can test and continue developing the transformer.
To Reproduce
My transformer is called @blanquera/idea-typescript In the example I'm creating, I created an idea file that looks like this.
plugin"@blanquera/idea-typescript"{lang"ts"output"./modules/[name]/types.ts"}//--------------------------------------------------------------------//// User System//A profile can be a person, organization, or any other type of entity.//Profiles can be authenticated or added from various sources. That's //why we call it profile instead of user and company indicating it's //just a general information of an entity.modelProfile @label("Profile""Profiles") @suggested("[name]") @icon("user"){idString @label("ID")
@id @generated @default("cuid()")
@list.char({ hellip falselength8})nameString @label("Name")
@searchable
@field.text
@is.required("Name is required")
@list.detail @view.textimageString? @label("Image")
@field.url
@list.image({width20 height 20})
@view.image({width100 height 100})descriptionString? @label("Description")
@field.textarea
@list.none @view.texttypeString? @label("Type")
@default("person")
@filterable
@field.text
@list.lowercase @view.lowercaserolesString[] @label("Roles")
@field.textlist
@list.hide
@view.tagstagsString[] @label("Tags")
@field.tags
@list.hide
@view.tagsreferencesHash? @label("References")
@field.metadata
@list.hide
@view.metadataactiveBoolean @label("Active")
@generated @active @default(true)
@list.hide @view.yesnocreatedDatetime @label("Created")
@generated @created @spanable @sortable @default("now()")
@list.date("m d, Y h:iA")
@view.date("m d, Y h:iA")updatedDatetime @label("Updated")
@generated @updated @spanable @sortable @default("now()")
@list.date("m d, Y h:iA")
@view.date("m d, Y h:iA")authAuth? @label("Auth")connectionsConnection[] @label("Connections")membershipsConnection[] @label("Memberships")filesFile[] @label("Files")addressesAddress[] @label("Addresses") @default("[]")}//Auth is used to authenticate a profile and create a session.modelAuth @label("Auth""Auths") @suggested("[username]") @icon("lock"){idString @label("ID")
@id @generated @default("cuid()")
@list.char({ hellip falselength8})profileIdString @label("Profile")
@filterable
@field.relation("Profile""id")
@is.required("Profile is required")
@list.relation("Profile")
@view.relation("Profile")usernameString @label("Username")
@unique @searchable @filterable
@field.text
@is.required("Username is required")
@is.cge(5"Should more than 5 characters")
@list.detail @view.textemailString? @label("Email Address")
@unique @searchable @filterable
@field.email
@is.email("Should be a valid email address")
@list.text @view.emailphoneString? @label("Phone Number")
@unique @searchable @filterable
@field.text
@is.pattern("/^\+[0-9]{0,3} [0-9]+$/""Should be a valid phone number")
@list.text @view.phonepasswordString @label("Password")
@field.password
@is.required("Password is required")twofaString? @label("2FA")
@field.textverifiedInt @label("Verified")
@generated @default(0)//0=unverified, 1=email, 2=phone, 3=bothlastLoginDatetime @label("Last Logged In")
@generated @default("now()")
@list.date("m d, Y h:iA")
@view.date("m d, Y h:iA")activeBoolean @label("Active")
@generated @active @default(true)
@list.yesno @view.yesnocreatedDatetime @label("Created")
@generated @created @spanable @sortable @default("now()")
@list.date("m d, Y h:iA")
@view.date("m d, Y h:iA")updatedDatetime @label("Updated")
@generated @updated @spanable @sortable @default("now()")
@list.date("m d, Y h:iA")
@view.date("m d, Y h:iA")profileProfile @relation({local"profileId"foreign"id"})}//--------------------------------------------------------------------//// Connection System//A connection is a list of connections between profiles// ie. company, network, group, organization, etc.// to do a company setup, make a company profile, then add members to it.enumRoles{OWNER"owner"MODERATOR"moderator"MEMBER"member"}modelConnection @label("Connection""Connections") @suggested("[owner.name] - [member.name]") @icon("users"){ownerIdString @label("Owner")
@id @relation("Profile""id")
@is.required("Owner is required")memberIdString @label("Member")
@id @relation("Profile""id")
@is.required("Member is required")roleRoles @label("Role")
@default("MEMBER")
@field.texttagsString[] @label("Tags")
@field.tags
@list.hide
@view.tagsactiveBoolean @label("Active")
@generated @active @default(true)
@list.yesno @view.yesnocreatedDatetime @label("Created")
@generated @created @spanable @sortable @default("now()")
@list.date("m d, Y h:iA")
@view.date("m d, Y h:iA")updatedDatetime @label("Updated")
@generated @updated @spanable @sortable @default("now()")
@list.date("m d, Y h:iA")
@view.date("m d, Y h:iA")ownerProfile @relation({name"connections"local"ownerId"foreign"id"})memberProfile @relation({name"memberships"local"memberId"foreign"id"})}//--------------------------------------------------------------------//// File SystemmodelFile @label("File""Files") @suggested("[name]") @icon("file"){//FIELDS:idString @label("ID")
@id @generated @default("cuid()")
@list.char({ hellip falselength8})profileIdString @label("Profile") @filterable
@field.relation("Profile""id")
@is.required("Profile is required")nameString @label("Name")
@searchable
@field.text
@is.required("Name is required")
@list.detail @view.texturlString @label("URL")
@searchable
@field.url
@is.required("URL is required")
@view.linktagsString[] @label("Tags")
@field.tags
@list.hide
@view.tagsactiveBoolean @label("Active")
@generated @active @default(true)
@list.yesno @view.yesnocreatedDatetime @label("Created")
@generated @created @spanable @sortable @default("now()")
@list.date("m d, Y h:iA")
@view.date("m d, Y h:iA")updatedDatetime @label("Updated")
@generated @updated @spanable @sortable @default("now()")
@list.date("m d, Y h:iA")
@view.date("m d, Y h:iA")profileProfile @relation({local"profileId"foreign"id"})}//--------------------------------------------------------------------//// Address SystemtypeAddress @label("Address""Addresses") @suggested("[name]") @icon("map-marker"){nameString @label("Name")
@field.text
@is.required("Name is required")
@list.detail @view.textcontactString? @label("Contact Person")
@field.text
@list.text @view.textemailString? @label("Contact Email Address")
@field.email
@is.email("Should be a valid email address")
@view.emailphoneString? @label("Contact Phone Number")
@field.text
@is.pattern("/^\+[0-9]{0,3} [0-9]+$/""Should be a valid phone number")
@view.phoneunitString? @label("Unit Number")
@field.text
@list.text @view.textbuildingString? @label("Building Name")
@field.text
@list.text @view.textstreetString @label("Street Address")
@field.text
@is.required("Street is required")
@list.text @view.textneighborhoodString? @label("Neighborhood")
@field.text
@list.text @view.textcityString @label("City")
@filterable
@field.text
@is.required("City is required")
@list.text @view.textstateString? @label("State")
@filterable
@field.text
@list.text @view.textregionString? @label("Region")
@filterable
@field.text
@list.text @view.textcountryString @label("Country")
@filterable
@field.country
@is.required("Country is required")
@list.text @view.textpostalString @label("Postal Code")
@filterable
@field.text
@is.required("Postal Code is required")
@list.text @view.textnotesString? @label("Notes")
@field.textarea
@view.textlatitudeFloat? @label("Latitude")longitudeFloat? @label("Longitude")}
The text was updated successfully, but these errors were encountered:
What version of Idea are you using?
0.1.1
What OS are you experiencing this issue?
MacOS Monterey
Describe the Bug
I'm creating an idea transformer that transforms ideas to typescript types. When running
npx idea -i ./schema.idea
I get the following error.Expected Behavior
Should process my transformer so I can test and continue developing the transformer.
To Reproduce
My transformer is called
@blanquera/idea-typescript
In the example I'm creating, I created an idea file that looks like this.The text was updated successfully, but these errors were encountered: