Open cowwoc opened 9 years ago
The specific error I am getting is:
{ [Error: Error: ENOENT, no such file or directory 'C:\Users\Gili\Documents\foo\frontend\src\test\out\js\html\page\Index.js'
at Object.fs.openSync (fs.js:427:18)
]
originalError:
{ [Error: ENOENT, no such file or directory 'C:\Users\Gili\Documents\foo\frontend\src\test\out\js\html\page\Index.js']
errno: 34,
code: 'ENOENT',
path: 'C:\\Users\\Gili\\Documents\\foo\\frontend\\src\\test\\out\\js\\html\\page\\Index.js',
syscall: 'open' } }
I noticed something else. The optimizer seems to be processing that path twice. Once as an input file, and once as an output file. Meaning, this is one of the may input files the optimizer is combining and it ends up combining them over the same filename. Maybe that is triggering this problem somehow.
Different error, but wondering if an issue I found could be related: https://github.com/jrburke/r.js/issues/768
According to https://github.com/jrburke/r.js/blob/master/build/example.build.js, module names are resolved relative to
baseUrl
if it is set or relative to the directory holding the build file if it is not set.In practice, what I am seeing is that relative paths are always being applied relative to
Gruntfile.js
(baseUrl
is ignored).I am running with require-js 2.1.15 and grunt-contrib-requirejs 0.4.4 with the following configuration:
grunt-contrib-requirejs configuration:
js/RequireConfig.js:
Any ideas?