Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import a smart contract into the Nuxt UI project scaffold #305

Merged
merged 27 commits into from
Nov 29, 2022

Conversation

ymekuria
Copy link
Collaborator

@ymekuria ymekuria commented Nov 14, 2022

Addresses
#295

This PR adds the the template Add smart contract into the index.vue of the UI when Nuxt is selected as the UI framework in the CLI.

@MartinMinkov
Copy link
Contributor

MartinMinkov commented Nov 16, 2022

I seem to get the following error when using create-nuxt-app with Windows:

npx create-nuxt-app@latest t9 create-nuxt-app v5.0.0 ✨ Generating Nuxt.js project in t9 ? Project name: t9 ? Programming language: JavaScript ? Package manager: Yarn ? UI framework: None ? Template engine: HTML ? Nuxt.js modules: (Press <space> to select, <a> to toggle all, <i> to invert selection) ? Linting tools: (Press <space> to select, <a> to toggle all, <i> to invert selection) ? Testing framework: None ? Rendering mode: Universal (SSR / SSG) ? Deployment target: Server (Node.js hosting) ? Development tools: (Press <space> to select, <a> to toggle all, <i> to invert selection) ? What is your GitHub username? martin minkov ? Version control system: Git Trace: TypeError: Cannot convert undefined or null to object at Object.apply (C:\Users\Martin\AppData\Local\npm-cache\_npx\4e867334d6c50eaa\node_modules\cna-template\template\nuxt\package.js:36:18) at Object.loadPackage (C:\Users\Martin\AppData\Local\npm-cache\_npx\4e867334d6c50eaa\node_modules\create-nuxt-app\lib\package.js:21:42) at Object.load (C:\Users\Martin\AppData\Local\npm-cache\_npx\4e867334d6c50eaa\node_modules\create-nuxt-app\lib\package.js:24:26) at Object.handler (C:\Users\Martin\AppData\Local\npm-cache\_npx\4e867334d6c50eaa\node_modules\create-nuxt-app\lib\saofile.js:147:34) at C:\Users\Martin\AppData\Local\npm-cache\_npx\4e867334d6c50eaa\node_modules\sao\lib\runActions.js:103:39 at Array.map (<anonymous>) at C:\Users\Martin\AppData\Local\npm-cache\_npx\4e867334d6c50eaa\node_modules\sao\lib\runActions.js:97:30 at C:\Users\Martin\AppData\Local\npm-cache\_npx\4e867334d6c50eaa\node_modules\majo\dist\majo.cjs.js:58:49 at C:\Users\Martin\AppData\Local\npm-cache\_npx\4e867334d6c50eaa\node_modules\create-nuxt-app\lib\cli.js:56:19

The error seems to be thrown from the CLI. Just wanted to notify that this feature doesn't work on Windows due to the CLI tool itself not working for Windows

@ymekuria
Copy link
Collaborator Author

ymekuria commented Nov 16, 2022

I seem to get the following error when using create-nuxt-app with Windows:

npx create-nuxt-app@latest t9 create-nuxt-app v5.0.0 ✨ Generating Nuxt.js project in t9 ? Project name: t9 ? Programming language: JavaScript ? Package manager: Yarn ? UI framework: None ? Template engine: HTML ? Nuxt.js modules: (Press <space> to select, <a> to toggle all, <i> to invert selection) ? Linting tools: (Press <space> to select, <a> to toggle all, <i> to invert selection) ? Testing framework: None ? Rendering mode: Universal (SSR / SSG) ? Deployment target: Server (Node.js hosting) ? Development tools: (Press <space> to select, <a> to toggle all, <i> to invert selection) ? What is your GitHub username? martin minkov ? Version control system: Git Trace: TypeError: Cannot convert undefined or null to object at Object.apply (C:\Users\Martin\AppData\Local\npm-cache\_npx\4e867334d6c50eaa\node_modules\cna-template\template\nuxt\package.js:36:18) at Object.loadPackage (C:\Users\Martin\AppData\Local\npm-cache\_npx\4e867334d6c50eaa\node_modules\create-nuxt-app\lib\package.js:21:42) at Object.load (C:\Users\Martin\AppData\Local\npm-cache\_npx\4e867334d6c50eaa\node_modules\create-nuxt-app\lib\package.js:24:26) at Object.handler (C:\Users\Martin\AppData\Local\npm-cache\_npx\4e867334d6c50eaa\node_modules\create-nuxt-app\lib\saofile.js:147:34) at C:\Users\Martin\AppData\Local\npm-cache\_npx\4e867334d6c50eaa\node_modules\sao\lib\runActions.js:103:39 at Array.map (<anonymous>) at C:\Users\Martin\AppData\Local\npm-cache\_npx\4e867334d6c50eaa\node_modules\sao\lib\runActions.js:97:30 at C:\Users\Martin\AppData\Local\npm-cache\_npx\4e867334d6c50eaa\node_modules\majo\dist\majo.cjs.js:58:49 at C:\Users\Martin\AppData\Local\npm-cache\_npx\4e867334d6c50eaa\node_modules\create-nuxt-app\lib\cli.js:56:19

The error seems to be thrown from the CLI. Just wanted to notify that this feature doesn't work on Windows due to the CLI tool itself not working for Windows

@MartinMinkov Did you get the same error when using npm as the package manager?

@MartinMinkov
Copy link
Contributor

@MartinMinkov Did you get the same error when using npm as the package manager?

Yep, something with NPM.

src/lib/project.js Outdated Show resolved Hide resolved
Copy link
Contributor

@MartinMinkov MartinMinkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small nit, approving in advance!

@ymekuria ymekuria merged commit 17ed299 into main Nov 29, 2022
@ymekuria ymekuria deleted the feature/add-contract-to-nuxt branch November 30, 2022 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants