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

Overwriting react components when installed without npm #60

Open
thapaliya19 opened this issue Nov 15, 2022 · 1 comment
Open

Overwriting react components when installed without npm #60

thapaliya19 opened this issue Nov 15, 2022 · 1 comment

Comments

@thapaliya19
Copy link

I am using the wq framework installed with the option --without-npm. As per the guide How To: Implement Repeating Nested Forms, I used a Babel editor to convert the React code to ES6, created a new file custom.js inside app/js and called wq.use(custom) just before init.
image
But this does not seem to work. What am I doing wrong here?

I want to change the DefaultList component and create a new about page. How can I perform these tasks?

@thapaliya19 thapaliya19 changed the title Overwriting react components when installed with out npm Overwriting react components when installed without npm Nov 15, 2022
@sheppard
Copy link
Member

This looks correct so far. Most likely this is either a caching issue, or the default export from custom.js isn't in the expected format. Can you try console.log(custom) and see if it has the expected views property?

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

No branches or pull requests

2 participants