Max

Max

Hi,

i´m new to vue so it might be me. I´ve parent.vue and child.vue. Making changes to parent.vue leads to “Cannot find module child.vue in parent.vue”. In the cmd it says: compiled parent.vue and 37 cached files into app.js in 524 ms. However, after restarting the phoenix server and 2-3 page refreshes everything works again. Child is imported with import Child from './child.vue'

Info: Changing child. vue works without any error

Brunch: 2.10.12
Elixir: 1.6.6
Pheonix: 1.3
Vue: 2.5.16

Any ideas?

Showing Posts 1 to 2

wmnnd

wmnnd

I think this is actually a problem with how Brunch is rebuilding your scripts when a Vue component changes. I have a similar setup, both with Phoenix and without Phoenix and regularly experience this problem. I’ve so far been unable to resolve this problem myself event though there is an entry in Brunch’s troubleshooting guide addressing this issue:

If you are running brunch watch and change something, to later find out that the changed file was included as completely empty… what do you do?
It is caused by the way some editors write to files. It also can happen when you edit files over ssh. You can see these threads for more details:
– Brunch - ultra-fast HTML5 build tool

Max

Max OP

:+1:

Solved it:

Using Sublime Text with atomic_save: true and following brunch config option:

watcher: {
  awaitWriteFinish: true,
  usePolling: true
}

thank you

— All posts loaded —

Where Next? Top

Trending in Questions Top

stjefim
Hello! Suppose you are building workflow (order / task / payment) processing system with the following requirements: Each workflow con...
New
water
I’m aware of 2 such projects, are there others? git: GitHub - team-alembic/realworld: A fullstack Phoenix LiveView application with back...
New
itzmidinesh
Hi all, I’m working on a Phoenix project where I need to make external HTTP requests and I’m trying to choose between Req and HTTPoison....
New
peck
Hi everyone. My team and I have been working on a fairly modest app based around video streaming and chat, but we’ve landed a customer t...
New
leoschweizer
Hi, we run different LLM models across a cluster, with each node loading a configurable subset. Model-specific queues let nodes consume ...
New
csmr
Hi all, I’m new here and would like to hear peoples views on my Elixir/Phoenix based game-engine! :smiley: Mutonex gamedesign was finish...
New
perzanko
Do we have maintainer of absinthe-graphql/dataloader here? We have a PR that we’d like to merge to the library. Relatively small additive...
New

Other Trending Topics Top

dominicletz
Hey there, I haven’t seen a list of useful Elixir specific skills for the popular AI tools yet so I’m starting one here with my first. ...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New
OndrejValenta
(I just needed to vent somewhere and LinkedIn is full of hope, or hype, I’m not sure which exactly) AI dream has many faces, but general...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews