Skip to content

Error After Upgrading to 0.5.0 (You have to build Vue application) #229

@ajdunn2

Description

@ajdunn2

What are you trying to achieve?

  • After updating this npm package from v0.4.7 to v0.5.0 the command npx codecept-ui --app no longer works

What do you get instead?

Provide console output if related.

 ⚠️You have to build Vue application by `npm run build`

This appears to be due to the dist folder missing from the node package.

047

050

Testing if dist folder is created locally

  • Running the npm run build command on this repo causes the following error.
/  Building for production...
ERROR  Failed to compile with 1 error                                                                            
Syntax Error: TypeError: Cannot read properties of undefined (reading 'parseComponent')
  • This appears to be due to the updated "vue-template-compiler v2.7.14" in this release not working with the version of vue in the package.lock file. Updating the version of vue 2.7.14 with npm i [email protected] fixes this issues and allows it to build the project files into the dist folder. Moving this dist folder into this packages folder in node_modules fixes the above error message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions