Skip to content

Cannot create a custom fieldtype #8158

Closed Answered by markdost
markdost asked this question in Troubleshooting
May 17, 2023 · 2 comments · 13 replies
Discussion options

You must be logged in to vote

I tried running npm ci && npm run watch which results in an error:

npm ci && npm run watch
npm WARN prepare removing existing node_modules/ before installation

> [email protected] postinstall /public_html/node_modules/esbuild
> node install.js

added 49 packages in 6.453s
npm ERR! missing script: watch

I have also tried running normal npm run build which also gives an error:

npm run build

> @ build /public_html
> vite build

vite v3.2.6 building for production...
✓ 2 modules transformed.
[vite:build-import-analysis] Parse error @:4:11
file: /public_html/resources/js/components/fieldtypes/CustomField.vue:4:10
2:     <div>
3:         <text-input :value="value" @input="update" />
4:     </d…

Replies: 2 comments 13 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
13 replies
@jasonvarga
Comment options

@markdost
Comment options

@markdost
Comment options

@markdost
Comment options

@jasonvarga
Comment options

Answer selected by jasonvarga
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants